1Template::Plugin::IteraUtsoerr(3C)ontributed Perl DocumeTnetmaptliaotne::Plugin::Iterator(3)
2
3
4

NAME

6       Template::Plugin::Iterator - Plugin to create iterators (Tem‐
7       plate::Iterator)
8

SYNOPSIS

10           [% USE iterator(list, args) %]
11
12           [% FOREACH item = iterator %]
13              [% '<ul>' IF iterator.first %]
14              <li>[% item %]
15              [% '</ul>' IF iterator.last %]
16           [% END %]
17

DESCRIPTION

19       The iterator plugin provides a way to create a Template::Iterator
20       object to iterate over a data set.  An iterator is implicitly automati‐
21       cally by the FOREACH directive.  This plugin allows the iterator to be
22       explicitly created with a given name.
23

AUTHOR

25       Andy Wardley <abw@wardley.org>
26
27       <http://wardley.org/http://wardley.org/>
28

VERSION

30       2.68, distributed as part of the Template Toolkit version 2.18,
31       released on 09 February 2007.
32
34         Copyright (C) 1996-2007 Andy Wardley.  All Rights Reserved.
35
36       This module is free software; you can redistribute it and/or modify it
37       under the same terms as Perl itself.
38

SEE ALSO

40       Template::Plugin, Template::Iterator
41
42
43
44perl v5.8.8                       2007-02-09     Template::Plugin::Iterator(3)
Impressum