1Template::Alloy::Play(3U)ser Contributed Perl DocumentatiToenmplate::Alloy::Play(3)
2
3
4

NAME

6       Template::Alloy::Play - Play role - allows for playing out the AST
7

DESCRIPTION

9       The Template::Alloy::Play role allows for taking the AST returned by
10       the Parse role, and executes it directly.  This is in contrast
11       Template::Alloy::Compile which translates the AST into perl code and
12       then executes the perl code.
13

ROLE METHODS

15       "play_tree"
16           Takes the AST output of load_tree and executes it directly.  It
17           should be passed an AST tree and an output string reference that
18           the content will be appended to.
19
20               my $tree = $self->load_tree('somefile');
21               my $out = '';
22               $self->play_tree($tree, \$out);
23
24       "play_*"
25           Methods by these names are used by execute_tree to execute the
26           parsed tree.
27

AUTHOR

29       Paul Seamons <paul@seamons.com>
30

LICENSE

32       This module may be distributed under the same terms as Perl itself.
33
34
35
36perl v5.32.1                      2021-03-23          Template::Alloy::Play(3)
Impressum