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::Plugin::Iterator - Plugin to create iterators (Template::Iterator)

Author

Description

       The iterator plugin provides a way to create a Template::Iterator object to iterate over a data set.  An
       iterator is implicitly automatically by the FOREACH directive.  This plugin allows the iterator to be
       explicitly created with a given name.

Name

       Template::Plugin::Iterator - Plugin to create iterators (Template::Iterator)

See Also

       Template::Plugin, Template::Iterator

perl v5.40.0                                       2024-10-20                    Template::Plugin::Iterator(3pm)

Synopsis

           [% USE iterator(list, args) %]

           [% FOREACH item = iterator %]
              [% '<ul>' IF iterator.first %]
              <li>[% item %]
              [% '</ul>' IF iterator.last %]
           [% END %]

See Also