Add templating

This commit is contained in:
2025-10-15 09:32:32 +02:00
parent 3b24e64131
commit f9c5ccc378
8 changed files with 596 additions and 60 deletions

View File

@@ -0,0 +1,25 @@
{{define "menubar"}}
<nav class="tui-nav">
<ul>
{{range .MenuGroups}}
<li class="tui-dropdown">
{{.LabelHTML}}
<div class="tui-dropdown-content">
<ul>
{{range .Items}}
{{if .IsDivider}}
<li class="tui-divider"></li>
{{else}}
<li><a href="{{.URL}}">{{.LabelHTML}}</a></li>
{{end}}
{{end}}
</ul>
</div>
</li>
{{end}}
</ul>
{{if .ShowClock}}
<span class="tui-datetime" data-format="h:m:s a"></span>
{{end}}
</nav>
{{end}}