Fixed the templating system
This commit is contained in:
11
views/item/list.html
Normal file
11
views/item/list.html
Normal 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" . }}
|
Reference in New Issue
Block a user