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

Excel::Template::Container::Loop - Excel::Template::Container::Loop

Attributes

       •   NAME

           This is the name of the loop. It's used to identify within the parameter set what variables to expose
           to the children nodes each iteration.

Author

       Rob Kinyon (rob.kinyon@gmail.com)

Children

       None

Dependencies

       None

Effects

       None

Inheritance

       Excel::Template::Container

Name

       Excel::Template::Container::Loop - Excel::Template::Container::Loop

Node Name

       LOOP

Purpose

       To provide looping

See Also

perl v5.34.0                                       2022-06-13              Excel::Template::Container::Loop(3pm)

Usage

         <loop name="LOOPY">
           ... Children here ...
         </loop>

       In  the  above  example, the children nodes would have access to the LOOPY array of hashes as parameters.
       Each iteration through the array would expose a different hash of parameters to the children.

       These loops work just like HTML::Template's loops. (I promise I'll give more info here!)

       There is one difference - I prefer using Perl-like scoping, so accessing of variables  outside  the  LOOP
       scope  from within is perfectly acceptable. You can also hide outside variables with inner values, if you
       desire, just like Perl.

See Also