Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func describes the function for includes or rendering partials within the template.
func Partial ¶
func Partial(tplFuncs template.FuncMap, exec tpl.TemplateExecutor) Func
Partial
Takes in the name of a template relative to the theme as well as any data to be passed. The template is executed and returns an error if no
Returns errors.TEMPLATE if no file was found or the template could not be executed.
Example: {{ partial "partials/circle.svg" (dict "radius" 50 "fill" "red") }}
Click to show internal directories.
Click to hide internal directories.