diff options
Diffstat (limited to 'web/templates/partials')
-rw-r--r-- | web/templates/partials/item.html | 3 | ||||
-rw-r--r-- | web/templates/partials/item_list.html | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/web/templates/partials/item.html b/web/templates/partials/item.html new file mode 100644 index 0000000..04eabba --- /dev/null +++ b/web/templates/partials/item.html @@ -0,0 +1,3 @@ +{{ define "partials/item.html" }} +<div>{{ .Name }}</div> +{{ end }} diff --git a/web/templates/partials/item_list.html b/web/templates/partials/item_list.html new file mode 100644 index 0000000..f12a34a --- /dev/null +++ b/web/templates/partials/item_list.html @@ -0,0 +1,7 @@ +{{ define "partials/item_list.html.tmpl" }} +<div class="items"> + {{ range .Items }} + {{ template "partials/item.html" .}} + {{ end }} +</div> +{{ end }} |