From 149cbe7681607eb48f47df14c7a39e6f289fb7b6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 15 May 2024 12:35:40 +0200 Subject: refactor(templates): render partials with less hackiness --- frontend/templates/blocks/options.gotmpl | 1 - frontend/templates/blocks/search.gotmpl | 3 --- 2 files changed, 4 deletions(-) (limited to 'frontend/templates') 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 }}
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" }}