Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TemplateRoot stores the root directory of all HTML templates. Overridden // in tests. TemplateRoot = "templates" )
Functions ¶
func Compile ¶
func Compile() error
Compile reads template HTML from disk, injects dynamic variables, hashes and stores them
func ParseTemplates ¶ added in v2.7.0
func ParseTemplates() error
ParseTemplates reads all HTML templates from disk, strips whitespace and parses them into the global template map
Types ¶
Click to show internal directories.
Click to hide internal directories.