NAME
Typist::Builder - Compilation and building of templates into output
METHODS
- Typist::Builder->new
-
Constructor. Instaniates a new object
- $builder->compile($ctx, $text)
-
Compiles a template into a tree of text and tag tokens.
Requires a Typist::Template::Context object and a string containing all the template markup.
- $builder->build($ctx, $tokens, $cond)
-
Builds a template into output. The builder works it way through the tokens tree calling the associated tag handlers along the way and assembling the output.
Requires a Typist::Template::Context object and an ARRAY reference containing a tokenized template presumably generated by the
compile
method. A third parameter, a HASH reference containing flags for conditional tags may optionally be passed in. If one is not an empty HASH reference is created.