refactor: common base template for pages

will allow to add common header and stuff
This commit is contained in:
efim
2023-11-13 05:25:02 +00:00
parent b1f2e896b9
commit 1297fcf35d
8 changed files with 140 additions and 55 deletions

View File

@@ -28,13 +28,16 @@
your experience.
</p>
<![endif]-->
<h1>Hello</h1>
<p>This is index</p>
<p>Your session is {{ .SessionStringToken }}</p>
<p>Some string is {{ .SomeString }}</p>
<a href="/room/{{ .SessionToken.RoomId }}"
class="text-blue-700 underline"
>You've logged into a room {{ .SessionToken.RoomId }}</a>
{{ define "main-content" }}
<main>
<h1>Hello</h1>
<p>This is index</p>
<p>Your session is {{ .SessionStringToken }}</p>
<p>Some string is {{ .SomeString }}</p>
<a href="/room/{{ .SessionToken.RoomId }}"
class="text-blue-700 underline"
>You've logged into a room {{ .SessionToken.RoomId }}</a>
</main>
{{ end }}
</body>
</html>