diff options
author | Alan Pearce | 2024-05-15 12:35:40 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-15 12:35:40 +0200 |
commit | 149cbe7681607eb48f47df14c7a39e6f289fb7b6 (patch) | |
tree | 97c00c61a61f38001205b39bdf15cf7bdb16784c /frontend/templates/blocks | |
parent | 5624cf8f6427064dd17de40acd1d3fdfe8332e96 (diff) | |
download | searchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.tar.lz searchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.tar.zst searchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.zip |
refactor(templates): render partials with less hackiness
Diffstat (limited to 'frontend/templates/blocks')
-rw-r--r-- | frontend/templates/blocks/options.gotmpl | 1 | ||||
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index ff8805c..ad92c17 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -1,4 +1,3 @@ -{{- template "results" . -}} {{- define "results" }} {{- if gt .Results.Total 0 }} <section id="results"> diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index feb77cc..3ad05bf 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -1,6 +1,3 @@ -{{- template "main" . }} -{{- template "js" . }} - {{- define "main" }} <form id="search"> <label for="query">{{ .Source.Name }} option search</label> |