Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace defines the methods for dicts to be used as template functions.
func (*Namespace) Dict ¶
Dict
Allows to pass multiple values to templates to use inside a template call for use with the post loop or partial calls.
Returns errors.TEMPLATE if the dict values are not divisible by two or any dict keys were not strings.
Example: {{ dict "colour" "green" "height" 20 }} Returns: map[string]interface{}{"colour":"green", "height":20}
Click to show internal directories.
Click to hide internal directories.