Fixed the templating system

This commit is contained in:
2022-12-07 21:51:49 -05:00
parent d56d0ba19a
commit e1b64766b6
6 changed files with 102 additions and 15 deletions

11
views/item/list.html Normal file
View File

@@ -0,0 +1,11 @@
{{ template "layout_header" . }}
<p><a href="/item/create">Create new item</a></p>
<ul>
{{ range .inventory }}
<li>{{ .name }}</li>
{{ end }}
</ul>
{{ template "layout_footer" . }}