Documentation
¶
Overview ¶
Package render implements the manifest template renderer used by the render-manifests CLI. Exposed as a package so tests in other packages (e.g. internal/orca/manifests) can render the orca templates programmatically without shelling out to `go run`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render walks templatesDir for *.yaml.tmpl files, executes each with Go's text/template (plus the sprig function library), and writes the rendered output under outputDir mirroring the source tree.
Template data is supplied via the data map. Missing keys evaluate to empty strings (text/template's missingkey=zero), which lets templates rely on sprig's `default` function for fallbacks.
Types ¶
This section is empty.