0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 14:02:58 +01:00

fix render bug

This commit is contained in:
slene 2014-04-10 08:34:19 +08:00
parent 3487f17285
commit 0f9e07de2d

View file

@ -146,7 +146,7 @@ func compile(options RenderOptions) *template.Template {
tmpl := t.New(filepath.ToSlash(name))
for _, funcs := range options.Funcs {
tmpl.Funcs(funcs)
tmpl = tmpl.Funcs(funcs)
}
template.Must(tmpl.Funcs(helperFuncs).Parse(string(buf)))