Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(inputFile string, templateFile string, outputFile string, opts ...RenderOption) error
func RenderWithData ¶
func RenderWithData(data interface{}, templateFile string, outputFile string, opts ...RenderOption) error
Types ¶
type RenderOption ¶ added in v1.1.0
type RenderOption func(*renderConfig)
RenderOption configures template rendering behavior.
func WithFuncMap ¶ added in v1.1.0
func WithFuncMap(fm template.FuncMap) RenderOption
WithFuncMap registers custom template functions for use during rendering.
Click to show internal directories.
Click to hide internal directories.