Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTemplateExists = errors.New("template already exists") ErrNoTemplate = errors.New("template not found") )
Functions ¶
func GenerateTemplates ¶
GenerateTemplates produces a map of templates based on a common base layout. It expects the following directory structure
templates/contacts/index.html templates/contacts/new.html templates/names/index.html templates/names/new.html
The base directory name does not matter, but it must not include an underscore as the first character. The base layouts should occur within a directory called _layout in the root templates directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.