NAME
Muster::Hook::Template - Muster template directive.
VERSION
version 0.92
DESCRIPTION
Muster::Hook::Template for template directives inside pages.
METHODS
Muster::Hook::Template inherits all methods from Muster::Hook::Directives.
register
Do some intialization.
process
Process templates.
format_yaml
{&format_yaml(fieldname,yaml_value)}
Format a yaml field.
repeat_n
{&repeat_n(num,value)}
Repeat a format N times. Simple substitution: $$N is the number and $$A is the equivalent letter.
repeat_for
{&repeat_for(pipe_value,value)}
Repeat a format for each "pipe-value" (pipe-separated value). Simple substitution: $$F is the "for" value $$N is the number and $$A is the equivalent letter.
math
{&math(mathexpr)}
Do math with the given fields.