Documentation
¶
Overview ¶
Package tmpl is used to parse Tamarin string templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fragment ¶
type Fragment struct {
// contains filtered or unexported fields
}
func (*Fragment) IsVariable ¶
IsVariable returns true if this is an expression, false if it is raw text.
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template defines a string template which may contain any number of expressions within.
func Parse ¶
Parse parses a string into a Template struct. The string may contain 0-N expressions in the form ${expression}.
Click to show internal directories.
Click to hide internal directories.