Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶
Assert returns true if the path is a valid template. If an error occurs while opening the path or while fetching its FileInfo, panic is called.
func GetName ¶
GetName takes a path to a template file and returns a path relative to the top-level templates directory with the file extension removed.
func Parse ¶
func Parse(path string)
Parse ensures that the file located at the path specified is a valid template before parsing it into the loaded templates. If any errors occur panic is called. If the path is a directory or does not end with .html, nothing happens.
func ParseAll ¶
func ParseAll()
ParseAll recursively parses all templates within the top-level template directory and its sub-directories. If any errors occur panic is called.