Documentation ¶
Index ¶
- func FuncMap() ttemplate.FuncMap
- func GenericFuncMap() map[string]any
- func HermeticHtmlFuncMap() htemplate.FuncMap
- func HermeticTxtFuncMap() ttemplate.FuncMap
- func HtmlFuncMap() htemplate.FuncMap
- func TxtFuncMap() ttemplate.FuncMap
- type SprigHandler
- func (sh *SprigHandler) AddRegistries(registries ...sprout.Registry) error
- func (sh *SprigHandler) AddRegistry(registry sprout.Registry) error
- func (sh *SprigHandler) Build() sprout.FunctionMap
- func (sh *SprigHandler) Logger() *slog.Logger
- func (sh *SprigHandler) Notices() []sprout.FunctionNotice
- func (sh *SprigHandler) RawAliases() sprout.FunctionAliasMap
- func (sh *SprigHandler) RawFunctions() sprout.FunctionMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncMap ¶
FuncMap returns a template.FuncMap for use with text/template or html/template. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARD COMPATIBILITY ONLY
func GenericFuncMap ¶
GenericFuncMap returns a copy of the basic function map as a map[string]any. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY
func HermeticHtmlFuncMap ¶
HermeticHtmlFuncMap returns an 'html/template'.Funcmap with only repeatable functions. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY
func HermeticTxtFuncMap ¶
HermeticTxtFuncMap returns a 'text/template'.FuncMap with only repeatable functions. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY
func HtmlFuncMap ¶
HtmlFuncMap returns an 'html/template'.Funcmap It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY
func TxtFuncMap ¶
TxtFuncMap returns a 'text/template'.FuncMap It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY
Types ¶
type SprigHandler ¶
type SprigHandler struct {
// contains filtered or unexported fields
}
func NewSprigHandler ¶
func NewSprigHandler() *SprigHandler
func (*SprigHandler) AddRegistries ¶
func (sh *SprigHandler) AddRegistries(registries ...sprout.Registry) error
func (*SprigHandler) AddRegistry ¶
func (sh *SprigHandler) AddRegistry(registry sprout.Registry) error
func (*SprigHandler) Build ¶
func (sh *SprigHandler) Build() sprout.FunctionMap
func (*SprigHandler) Logger ¶
func (sh *SprigHandler) Logger() *slog.Logger
func (*SprigHandler) Notices ¶ added in v0.6.0
func (sh *SprigHandler) Notices() []sprout.FunctionNotice
func (*SprigHandler) RawAliases ¶ added in v0.6.0
func (sh *SprigHandler) RawAliases() sprout.FunctionAliasMap
func (*SprigHandler) RawFunctions ¶ added in v0.6.0
func (sh *SprigHandler) RawFunctions() sprout.FunctionMap