Documentation
¶
Overview ¶
Package templatehelpers exposes optional convenience helpers for templates.
These helpers are useful in applications, but they are not required for go-partial's render tree, request handling, or connector behavior. Register them explicitly when an application wants them:
root.SetFunc(templatehelpers.FuncMap())
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionFuncMap ¶
CollectionFuncMap returns map and slice helper functions.
func HTMLFuncMap ¶
HTMLFuncMap returns helpers that mark HTML as trusted.
func NumberFuncMap ¶
NumberFuncMap returns numeric helper functions.
func StringFuncMap ¶
StringFuncMap returns string and text helper functions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.