Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Add `Safe()` template function to notif templates.

Kailash Nadhf266f93cc81e
diff --git a/cmd/init.go b/cmd/init.go
index 181411d6..831812f9 100644
--- a/cmd/init.go
+++ b/cmd/init.go
@@ -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")