logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Template::Alloy::Stream - Stream role - allows for playing out the AST and printing straight to file

Author

       Paul Seamons <paul@seamons.com>

Description

       The Template::Alloy::Stream role works similar to the PLAY role, but instead of accumulating the data, it
       prints it as soon as it is available.

       All directives are supported except for the CLEAR directive which is meaningless.

       Most configuration items are supported - except for the TRIM directive which cannot be used because the
       output is not buffered into a variable that can be trimmed.

       The WRAPPER directive is still supported - but it essentially turns off STREAM as the content must be
       generated before playing the WRAPPER templates.

License

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

perl v5.38.2                                       2024-03-07                       Template::Alloy::Stream(3pm)

Name

       Template::Alloy::Stream - Stream role - allows for playing out the AST and printing straight to file
       handle

Role Methods

       "stream_tree"
           Similar to play_tree from the Play role, but prints output to the screen as soon as it is ready.

See Also