Template Toolkit Version 3 Developer Documentation
http://www.template-toolkit.org/v3/

Template::Parser::Handler

Table of Contents

: new()init()clone()directives()content()text()directive()
NOTES:

Synopsis


Description

Objects of this class are created to handle the parsing of a block of template code. The handler receives events from the parser to indicate text() and directive() events. The handler delegates parsing of directives to the DIRECTIVES handlers defined for them. Otherwise, a directive is treated as a bare GET or SET and handled via the parser parse_statement() method.

The handler collects the resultant Perl code generated by the directive parsers and/or the compiler module and makes this available via the content() method.


Methods

Template Toolkit Version 3 Developer Documentation
http://www.template-toolkit.org/v3/