ADDED:
* Much more functions to tplx/sprigx
This commit is contained in:
brent saner
2026-01-29 19:02:21 -05:00
parent 64a7648fbc
commit 1bd6e1256c
18 changed files with 3036 additions and 1489 deletions

View File

@@ -25,6 +25,11 @@ func FuncMap() (fmap map[string]any) {
for fn, f = range genericMap {
fmap[fn] = f
}
if osGenericMap != nil && len(osGenericMap) > 0 {
for fn, f = range osGenericMap {
fmap[fn] = f
}
}
return
}
@@ -43,6 +48,12 @@ func HtmlFuncMap() (fmap htpl.FuncMap) {
}
}
if osHtmlMap != nil && len(osHtmlMap) > 0 {
for fn, f = range osHtmlMap {
fmap[fn] = f
}
}
return
}
@@ -60,5 +71,11 @@ func TxtFuncMap() (fmap ttpl.FuncMap) {
}
}
if osTxtMap != nil && len(osTxtMap) > 0 {
for fn, f = range osTxtMap {
fmap[fn] = f
}
}
return
}