Documentation
¶
Overview ¶
mustache is a package to parse the mustache template format into the Tree format needed by multitemplate. In general, this implementation follows the base mustache specification, with no significant changes. However this implementation does diverge in respect to templates functions, (lambdas in mustache speak). Fill in this section when lambda's are completed.
Lambdas that are called as if statements will have their returns taken and used to set the dot value, or quite similar to the with statement from Go's stdlib template libraries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LeftDelim = "{{" RightDelim = "}}" LeftEscapeDelim = "{{{" RightEscapeDelim = "}}}" )
Functions ¶
Types ¶
type MustacheParser ¶
type MustacheParser string
func (MustacheParser) ApplicableExtensions ¶
func (mp MustacheParser) ApplicableExtensions() []string
func (MustacheParser) RequiredHtmlFuncs ¶
func (mp MustacheParser) RequiredHtmlFuncs() htmlTemplate.FuncMap
func (MustacheParser) RequiredTextFuncs ¶
func (mp MustacheParser) RequiredTextFuncs() textTemplate.FuncMap
Source Files
¶
Click to show internal directories.
Click to hide internal directories.