mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:25:36 +03:00
fix render bug
This commit is contained in:
parent
3487f17285
commit
0f9e07de2d
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue