Documentation ¶
Overview ¶
Package functions contains custom functions specific to korvike and returns the sprig functions with added korvike specific functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionMap ¶
GetFunctionMap exports all functions used in korvike to be used in own projects Example:
import korvike "github.com/Luzifer/korvike" tpl := template.New("mytemplate").Funcs(korvike.GetFunctionMap())
func SetSubTemplateVariables ¶ added in v0.11.0
func SetSubTemplateVariables(m map[string]interface{})
SetSubTemplateVariables sets variables to apply in `tplexec` function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.