Template::Alloy::Play - Play role - allows for playing out the AST
The Template::Alloy::Play role allows for taking the AST returned by the Parse role, and executes it directly. This is in contrast Template::Alloy::Compile which translates the AST into perl code and then executes the perl code.
Takes the AST output of load_tree and executes it directly. It should be passed an AST tree and an output string reference that the content will be appended to.
my $tree = $self->load_tree('somefile');
my $out = '';
Methods by these names are used by execute_tree to execute the parsed tree.
Paul Seamons <email@example.com>
This module may be distributed under the same terms as Perl itself.
To install Template::Alloy, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.