refactor: common base template for pages
will allow to add common header and stuff
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user