diff --git a/internal/router/router.go b/internal/router/router.go index 6b8bafb75..0c27886d8 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -128,7 +128,7 @@ func New(cfg *config.Config, db db.DB, logger *logrus.Logger) (Router, error) { } // set template functions - loadTemplateFunctions(engine); + loadTemplateFunctions(engine) // load templates onto the engine if err := loadTemplates(cfg, engine); err != nil { diff --git a/internal/router/template.go b/internal/router/template.go index 8f3e76573..3b81773ec 100644 --- a/internal/router/template.go +++ b/internal/router/template.go @@ -30,4 +30,4 @@ func loadTemplateFunctions(engine *gin.Engine) { return r.engine.SetFuncMap(template.FuncMap{ "noescape": noescape, }) -} \ No newline at end of file +}