1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 05:25:58 +00:00

builtin html template functions changes

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-12-13 01:37:15 +02:00
parent abeae40e60
commit 1ea5cd58be
115 changed files with 472 additions and 230 deletions

View File

@@ -45,7 +45,7 @@ func Ace(fs interface{}, extension string) *AceEngine {
s.middleware = func(name string, text []byte) (contents string, err error) {
once.Do(func() { // on first template parse, all funcs are given.
for k, v := range emptyFuncs {
for k, v := range s.getBuiltinFuncs(name) {
funcs[k] = v
}