template

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL