config and templates

This commit is contained in:
Bronku 2025-08-06 22:51:50 +02:00
parent cdf42b7ff3
commit fb22f599ad
22 changed files with 816 additions and 38 deletions

View file

@ -0,0 +1,21 @@
{{define "title"}}
Cakes
{{end}}
{{define "main"}}
<main>
<table>
<tr>
<th></th>
<th>Name</th>
<th>Price</th>
</tr>
{{range .}}
<tr>
<th><a href="/cake/{{.ID}}">edit</a></th>
<th>{{.Name}}</th>
<th>{{.Price}}</th>
</tr>
{{end}}
</table>
</main>
{{end}}