Template::Alloy::Play(3pm)

Template::Alloy::Play3pm

Play role - allows for playing out the ast

Overview

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.

Role methods

"play_tree"

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 = '';
    $self->play_tree($tree, \$out);
"play_*"

Methods by these names are used by execute_tree to execute the parsed tree.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8–10
  4. 11
  5. 12
  6. 13

Author

Paul Seamons <[email protected]>

License

This module may be distributed under the same terms as Perl itself.

From libtemplate-alloy-perl 1.022-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.