Templa...y::Play(3pm)

πŸ“¦
version 1.022 Β· 6 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay bestie, welcome to Templa...y::Play(3pm) β€” she's a Perl module page, from the User Contributed Perl Documentation, and her whole thing is Template::Alloy::Play, the Play role. and what does the Play role do?? it plays out the AST. iconic behaviour, honestly.


🌸 DESCRIPTION 🌸

so the Template::Alloy::Play role is the one that takes the AST your Parse role handed you and just… executes it directly. like, no middleman. no detour. straight vibes.

this is in contrast to Template::Alloy::Compile, which is the other girl β€” she takes that same AST and translates it into perl code first, and then executes the perl code. two different paths, same destination. pick your fighter. πŸ’…


✨ ROLE METHODS ✨

  • play_tree β€” takes the AST output of load_tree and executes it directly, no cap. you gotta pass it an AST tree and an output string reference, and all the content gets appended to that reference. here's the whole moment:
my $tree = $self->load_tree('somefile');
my $out = '';
$self->play_tree($tree, \$out);
  • play_* β€” methods with names like this are the ones execute_tree calls to execute the parsed tree. so play_ plus literally anything, iykyk. πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

Paul Seamons <paul@seamons.com> β€” king behaviour, we love to see it. πŸ’œ


πŸŽ€ LICENSE πŸŽ€

this module may be distributed under the same terms as Perl itself. so basically, same energy as Perl, fr fr. 🌈


and that's the whole page, bestie!! this little beauty came from the perl v5.38.2 docs, dated 2024-03-07, and yeah β€” she's filed under Templa...y::Play(3pm). go forth and play that tree. πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from