Skip to content

Commit

Permalink
Add Safe() template function to notif templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Sep 10, 2022
1 parent 5a9e920 commit f266f93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ func initNotifTemplates(path string, fs stuffbin.FileSystem, i *i18n.I18n, cs *c
"L": func() *i18n.I18n {
return i
},
"Safe": func(safeHTML string) template.HTML {
return template.HTML(safeHTML)
},
}

tpls, err := stuffbin.ParseTemplatesGlob(funcs, fs, "/static/email-templates/*.html")
Expand Down

0 comments on commit f266f93

Please sign in to comment.