Template::Plugin::Iterator(3pm)

Template::Plugin::Iterator3pm

Plugin to create iterators (template::iterator)

Usage

    [% USE iterator(list, args) %]
    [% FOREACH item = iterator %]
       [% '<ul>' IF iterator.first %]
       <li>[% item %]
       [% '</ul>' IF iterator.last %]
    [% END %]

Overview

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.

Releases

13 releases since Debian 3.0 (Woody); the text changed 11 times.

  1. 3.0
  2. 3.1–4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

Author

Andy Wardley <[email protected]> <http://wardley.org/>

From perl-template-toolkit 3.106-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.