Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedTemplate = errors.New("template specified has unsupported extension")
ErrUnsupportedTemplate indicates that the file type of the specified template is not supported
Functions ¶
This section is empty.
Types ¶
type Dir ¶
Dir is a directory containing Template files
type HTML ¶
HTML is a standard html/template
type Template ¶
type Template interface { // Execute generates an HTML document from the template Execute(out io.Writer, data interface{}) error // IsNewer checks if this template has been modified after a specific time IsNewer(other *file.File) bool // Update re-reads the template from disk Update() error }
Template represents any supported template type for content
func NewTemplate ¶
NewTemplate creates a new Template from a file on disk
Click to show internal directories.
Click to hide internal directories.