refactor: adding base template for header & nav

This commit is contained in:
efim
2023-10-06 13:39:36 +00:00
parent 2676b87d5b
commit ffd74c4222
5 changed files with 220 additions and 126 deletions

View File

@@ -0,0 +1,14 @@
{{ define "title" }}
Some page with content
{{ end }}
{{ define "content" }}
<h1>This is another page</h1>
<p>Will be rendered on server</p>
<p>and locked under apis.RequireAdminOrRecordAuth default middleware</p>
<p>here are some random numbers</p>
<ul>
<li>{{ .RandomNumber }}</li>
<li>{{ .RandomString }}</li>
</ul>
{{ end }}