Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { // Prepare renders all of the given Files for execution. Some // implementations may return a cached executor for the given Files Prepare(Files) (*template.Template, error) }
Context is a group of template files that all live under a directory
func NewCachingContext ¶
NewCachingContext creates and returns a new Context implementation that lazily parses a new template on the first call to Prepare, and caches that template on subsequent calls
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
Files is an ordered list of filenames that comprise a template. The first filename in the list should be the primary template that will be rendered, and the remaining ones should be supporting templates like block definitions
Click to show internal directories.
Click to hide internal directories.