Browse Source

fix render bug

pull/70/head
slene 11 years ago
parent
commit
0f9e07de2d
  1. 2
      modules/middleware/render.go

2
modules/middleware/render.go

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

Loading…
Cancel
Save