summaryrefslogtreecommitdiff
path: root/internal/router/router.go
diff options
context:
space:
mode:
authorLibravatar f0x52 <f@0x52.eu>2021-07-13 16:05:03 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-13 16:05:03 +0200
commitf05b2555117b631eba0ec55fc1ac6d4c9abb8605 (patch)
tree1dbe0d966226bec263a93f8ca59a9ce555abef5e /internal/router/router.go
parentsanitize html for statuses + instance (#97) (diff)
downloadgotosocial-f05b2555117b631eba0ec55fc1ac6d4c9abb8605.tar.xz
Noescape (#88)
* disable html escaping for short description * provide noescape function for templates * move template functions before template loading * go fmt * linter fixes
Diffstat (limited to 'internal/router/router.go')
-rw-r--r--internal/router/router.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/router/router.go b/internal/router/router.go
index a77b7071e..87a84922c 100644
--- a/internal/router/router.go
+++ b/internal/router/router.go
@@ -126,6 +126,9 @@ func New(cfg *config.Config, db db.DB, logger *logrus.Logger) (Router, error) {
return nil, err
}
+ // set template functions
+ loadTemplateFunctions(engine)
+
// load templates onto the engine
if err := loadTemplates(cfg, engine); err != nil {
return nil, err