about summary refs log tree commit diff stats
path: root/frontend/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-05-15 12:35:40 +0200
committerAlan Pearce2024-05-15 12:35:40 +0200
commit149cbe7681607eb48f47df14c7a39e6f289fb7b6 (patch)
tree97c00c61a61f38001205b39bdf15cf7bdb16784c /frontend/templates
parent5624cf8f6427064dd17de40acd1d3fdfe8332e96 (diff)
downloadsearchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.tar.lz
searchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.tar.zst
searchix-149cbe7681607eb48f47df14c7a39e6f289fb7b6.zip
refactor(templates): render partials with less hackiness
Diffstat (limited to 'frontend/templates')
-rw-r--r--frontend/templates/blocks/options.gotmpl1
-rw-r--r--frontend/templates/blocks/search.gotmpl3
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>