diff options
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources.go b/resources.go index c1b4a9b..2576c12 100644 --- a/resources.go +++ b/resources.go @@ -40,10 +40,11 @@ func loadTemplates() (err error) { m.Add("text/html", &html.Minifier{TemplateDelims: [2]string{"{{", "}}"}, KeepDefaultAttrVals: true}) templates = template.New("templates").Funcs(template.FuncMap{ - "first_line": firstLine, - "base_name": baseName, - "path_escape": pathEscape, - "query_escape": queryEscape, + "first_line": firstLine, + "base_name": baseName, + "path_escape": pathEscape, + "query_escape": queryEscape, + "dereference_error": dereference[error], }) err = fs.WalkDir(resourcesFS, "templates", func(path string, d fs.DirEntry, err error) error { |