aboutsummaryrefslogtreecommitdiff
path: root/internal/template/functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/template/functions.go')
-rw-r--r--internal/template/functions.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/template/functions.go b/internal/template/functions.go
index a084db86..3b088d20 100644
--- a/internal/template/functions.go
+++ b/internal/template/functions.go
@@ -56,6 +56,9 @@ func (f *funcMap) Map() template.FuncMap {
"safeCSS": func(str string) template.CSS {
return template.CSS(str)
},
+ "safeJS": func(str string) template.JS {
+ return template.JS(str)
+ },
"noescape": func(str string) template.HTML {
return template.HTML(str)
},