Documentation
¶
Overview ¶
Package template provides template expansion actions for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *op.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)
+devlore:access=planned
Click to show internal directories.
Click to hide internal directories.