diff --git a/config.go b/config.go index 4ba9dfa..778c548 100644 --- a/config.go +++ b/config.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "html/template" "os" "path" "strings" @@ -78,6 +79,9 @@ func (c *Config) LoadTemplates(path string) error { } return b.String(), nil }, + "html": func(s string) template.HTML { + return template.HTML(s) + }, }) return c.templates.Load(path) }