Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct {
*template.Template
// RootTemplateName is the name of the template that will be
// rendered when Execute is called.
RootTemplateName string
// Files represents the files that make up this template.
Files []string
// contains filtered or unexported fields
}
Template represents a single temple Template.
type Temple ¶
type Temple struct {
// contains filtered or unexported fields
}
Temple represents a map of Templates keyed by their dot notation names.
func New ¶
New walks directories starting at root and generates a Temple object containing all compiled templates.
func NewOnTemplate ¶
func NewOnTemplate(root string, onTemplate func(template *template.Template) (*template.Template, error)) (*Temple, error)
NewOnTemplate walks directories starting at root and generates a Temple object containing all compiled templates, calling the OnTemplate callback for each template.
Click to show internal directories.
Click to hide internal directories.