render

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 7 Imported by: 0

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

func Render(templatesDir, outputDir string, data map[string]string) error

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.

Jump to

Keyboard shortcuts

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