func init() { if err := configor.Load(&Config, "config/database.yml", "config/smtp.yml"); err != nil { panic(err) } View = render.New() }
func init() { if err := configor.Load(&Config, "config/database.yml", "config/smtp.yml"); err != nil { panic(err) } View = render.New() htmlSanitizer := bluemonday.UGCPolicy() View.RegisterFuncMap("raw", func(str string) template.HTML { return template.HTML(htmlSanitizer.Sanitize(str)) }) }