Versions in this module Expand all Collapse all v0 v0.2.0 Aug 14, 2026 v0.1.0 Jul 7, 2026 Changes in this version + const Version + func ValidateInputs(source string, inputs map[string]any) (map[string]any, error) + func WriteOutput(result *RenderResult, outputDir string, block string) ([]string, error) + type ArrayLiteral struct + Items []Expr + type BinOp struct + Left Expr + Op string + Right Expr + type Block struct + Body []Node + MultipleSource string + MultipleVar string + Name string + NameExpr Expr + type DuplicateNameError struct + BlockName string + ComputedName string + func (e *DuplicateNameError) Error() string + type Error interface + type Expr interface + type ExprNode struct + Expr Expr + type FilterCall struct + Args []Expr + Name string + Target Expr + type FilterError struct + ExpectedType string + FilterName string + func (e *FilterError) Error() string + type ForNode struct + Body []Node + Iterable Expr + VarName string + type IfBranch struct + Body []Node + Condition Expr + type IfNode struct + Branches []IfBranch + type InputDecl struct + Default any + HasDefault bool + Name string + Type string + func GetInputs(source string) ([]InputDecl, error) + type Literal struct + Value any + type MissingInputError struct + Name string + func (e *MissingInputError) Error() string + type Node interface + type Not struct + Operand Expr + type OrderedMap struct + func (m *OrderedMap) Get(key string) (string, bool) + func (m *OrderedMap) Has(key string) bool + func (m *OrderedMap) Keys() []string + func (m *OrderedMap) Len() int + func (m *OrderedMap) Set(key, value string) + type ParsedTemplate struct + Blocks []Block + Inputs []InputDecl + func ParseFile(source string) (*ParsedTemplate, error) + type ReferenceError struct + Message string + func ForwardBlockError(name string) *ReferenceError + func UndefinedError(name string) *ReferenceError + func (e *ReferenceError) Error() string + type RenderResult struct + func Render(source string, inputs map[string]any) (*RenderResult, error) + func RenderFile(path string, inputs map[string]any) (*RenderResult, error) + func RenderTemplate(tmpl *ParsedTemplate, inputs map[string]any) (*RenderResult, error) + func (r *RenderResult) Get(name string) (RenderedValue, bool) + func (r *RenderResult) Names() []string + type RenderedValue = any + type SyntaxError struct + Message string + func (e *SyntaxError) Error() string + type TextNode struct + Text string + type TypeError struct + Actual string + Expected string + func (e *TypeError) Error() string + type Var struct + Path []string