update... work pending

This commit is contained in:
brent saner
2025-02-04 12:14:08 -05:00
parent 3b4d712722
commit 3c984a0636
39 changed files with 2122 additions and 597 deletions

20
tplCmd/funcs.go Normal file
View File

@@ -0,0 +1,20 @@
package tplCmd
import (
`text/template`
`github.com/Masterminds/sprig/v3`
)
// GetTpl returns a generic text/template.Template with the customization/FuncMap logic applied.
func GetTpl() (tpl *template.Template) {
tpl = template.New("")
tpl.Funcs(sprig.TxtFuncMap()).Funcs(TplFuncs)
if CombinedTplFuncMap != nil && len(CombinedTplFuncMap) > 0 {
tpl.Funcs(CombinedTplFuncMap)
}
return
}