template

package
v0.1.0-dev.20260217190120 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *execution.ActionRegistry)

Register registers all template actions with the given registry.

Types

type Provider

type Provider struct{}

Provider provides template expansion operations. It takes input content and produces output content through Go template expansion — no filesystem access.

func (*Provider) Render

func (p *Provider) Render(templateData map[string]any, source, path, project string, content []byte) ([]byte, error)

Render processes content as a Go text/template. Returns the rendered bytes.

type Render

type Render struct{ Impl *Provider }

Render processes content as a Go text/template (transformer: reads content, stores result).

func (*Render) Do

func (*Render) Name

func (o *Render) Name() string

func (*Render) Undo

func (o *Render) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

Jump to

Keyboard shortcuts

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