dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ce9aa1e44bcc1195624ae88df60edd51a263f530
parent 8cda711e33c0b9b08a506626f4c2b641ed04dfd8
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 18 Dec 2022 15:21:42 -0800

cleanup

Diffstat:
Mpkg/template/templates.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkg/template/templates.go b/pkg/template/templates.go @@ -115,7 +115,11 @@ func getBaseKeywords() []string { func (t *Templates) BuildTemplates() { t.Templates = make(map[string]*template.Template) - buildTemplatesHelper("views/pages", t.Templates, "", []string{"views/pages/captcha-tmpl.gohtml", "views/pages/pagination.gohtml", "views/pages/anti-prefill.gohtml"}, t.funcMap) + bases := []string{ + "views/pages/captcha-tmpl.gohtml", + "views/pages/pagination.gohtml", + "views/pages/anti-prefill.gohtml"} + buildTemplatesHelper("views/pages", t.Templates, "", bases, t.funcMap) var err error tmpl := New("_", bindata.Asset).Funcs(t.funcMap)