template

package
v0.1.0-dev.20260222175125 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 actions. 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.

Parameters:

  • templateData: Key-value pairs available as template variables
  • source: Source file path (available as .Source in the template)
  • path: Target file path (available as .Target in the template)
  • project: Project name (available as .Project in the template)

type Render

type Render struct{ Impl *Provider }

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

func (*Render) Do

func (*Render) Name

func (o *Render) Name() string

Jump to

Keyboard shortcuts

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