mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
bug fix: need to add custom funcs when using assets
This commit is contained in:
parent
8bc1123f1d
commit
91178f4f29
98
bindata.go
98
bindata.go
File diff suppressed because one or more lines are too long
@ -165,7 +165,9 @@ func loadTemplates(list ...string) multitemplate.Render {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
tmplMessage, err := template.New(x).Parse(string(templateString))
|
||||
tmplMessage, err := template.New(x).Funcs(template.FuncMap{
|
||||
"sniffContentType": sniffContentType,
|
||||
}).Parse(string(templateString))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user