diff --git a/handlers/handlers.go b/handlers/handlers.go index 1213fbe..e5f322f 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -39,7 +39,11 @@ func listAllTmpls() []string { // TODO: mimic https://github.com/drone/funcmap/blob/master/funcmap.go func setFuncMap(t *template.Template) { - t.Funcs(template.FuncMap{ + t.Funcs(getFuncMap()) +} + +func getFuncMap() template.FuncMap { + return template.FuncMap{ "ifIE": func() template.HTML { return template.HTML("