From fc5fd2edd9b8282497e33a18300eab694d8a89c6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 21 Jun 2024 13:02:08 +0200 Subject: refactor: switch to templ for HTML templates --- internal/components/search.templ | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 internal/components/search.templ (limited to 'internal/components/search.templ') diff --git a/internal/components/search.templ b/internal/components/search.templ new file mode 100644 index 0000000..f1a5b8b --- /dev/null +++ b/internal/components/search.templ @@ -0,0 +1,34 @@ +package components + +templ Search(tdata TemplateData, r ResultData) { + +} + +templ SearchPage(tdata TemplateData, r ResultData) { + @Page(tdata) { + @script(tdata.Assets.Scripts["static/search.js"]) + @Search(tdata, r) +
+ { children... } +
+ + + + } +} -- cgit 1.4.1