Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template interface { SourcePath() string DestinationPath() string Context() *TemplateContext Resolve() error Render() error }
Template contains the metadata for rendering a template from a source into a destination path
func NewTemplate ¶
NewTemplate creates a new template
type TemplateContext ¶
type TemplateContext struct {
Params map[string]interface{}
}
TemplateContext is a map containing the resolved template parameters and rendering context
Click to show internal directories.
Click to hide internal directories.