Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectParameters ¶
CollectParameters analyzes template files and returns a list of unique parameter names used in them. It processes templates concurrently for better performance.
func IsTemplate ¶
IsTemplate checks if a file is a template by verifying if it has a .tmpl extension.
func RenderTemplate ¶
RenderTemplate processes a template file with the given parameters and returns the rendered content. It supports all standard Go template functionality plus Sprig template functions (http://masterminds.github.io/sprig/). This enables advanced template features like string manipulation, date formatting, math operations, and more. Examples of Sprig functions include: upper, lower, title, trim, default, date, repeat, etc.
Types ¶
This section is empty.