template

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisteredFilters added in v0.1.11

func RegisteredFilters() map[string]FilterFunction

func RenderLiquid

func RenderLiquid(input []byte, bindings map[string]interface{}) ([]byte, error)

func RenderTpl

func RenderTpl(input []byte, bindings map[string]interface{}) ([]byte, error)

RenderTpl renders the given Helm .tpl template with the provided bindings and automatically includes additional templates from a directory.

Types

type FilterFunction added in v0.1.11

type FilterFunction struct {
	Name           string                      `json:"name"`
	Aliases        []string                    `json:"aliases,omitempty"`
	Documentation  FilterFunctionDocumentation `json:"description,omitempty"`
	Implementation string                      `json:"implementation,omitempty"`
}

type FilterFunctionDocumentation added in v0.1.11

type FilterFunctionDocumentation struct {
	Description string   `json:"description,omitempty"`
	Parameters  []string `json:"parameters,omitempty"`
	Example     string   `json:"example,omitempty"`
}

Jump to

Keyboard shortcuts

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