-
Notifications
You must be signed in to change notification settings - Fork 94
/
Iterator.html
81 lines (78 loc) · 2.36 KB
/
Iterator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[%#
# IMPORTANT NOTE
# This documentation is generated automatically from source
# templates. Any changes you make here may be lost.
#
# The 'docsrc' documentation source bundle is available for download
# from http://www.template-toolkit.org/docs.html and contains all
# the source templates, XML files, scripts, etc., from which the
# documentation for the Template Toolkit is built.
-%]
[% META book = 'Modules'
page = 'Plugin_Iterator'
%]
[% WRAPPER toc;
INCLUDE tocitem
title = 'SYNOPSIS';
INCLUDE tocitem
title = 'DESCRIPTION';
INCLUDE tocitem
title = 'AUTHOR';
INCLUDE tocitem
title = 'VERSION';
INCLUDE tocitem
title = 'COPYRIGHT';
INCLUDE tocitem
title = 'SEE ALSO';
END
%]
<!-- Pod to HTML conversion by the Template Toolkit version 2 -->
[% WRAPPER section
title='SYNOPSIS'
-%]<pre> [% tt_start_tag %] USE iterator(list, args) [% tt_end_tag %]</pre>
<pre> [% tt_start_tag %] FOREACH item = iterator [% tt_end_tag %]
[% tt_start_tag %] '<ul>' IF iterator.first [% tt_end_tag %]
<li>[% tt_start_tag %] item [% tt_end_tag %]
[% tt_start_tag %] '</ul>' IF iterator.last [% tt_end_tag %]
[% tt_start_tag %] END [% tt_end_tag %]</pre>
[%- END %]
[% WRAPPER section
title='DESCRIPTION'
-%]<p>
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.
</p>
[%- END %]
[% WRAPPER section
title='AUTHOR'
-%]<p>
Andy Wardley <abw@kfs.org>
</p>
<p>
[% ttlink('http://www.andywardley.com/', 'http://www.andywardley.com/') -%]
</p>
[%- END %]
[% WRAPPER section
title='VERSION'
-%]<p>
2.29, distributed as part of the
Template Toolkit version 2.06, released on 07 November 2001.
</p>
[%- END %]
[% WRAPPER section
title='COPYRIGHT'
-%]<pre> Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved.
Copyright (C) 1998-2001 Canon Research Centre Europe Ltd.</pre>
<p>
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
</p>
[%- END %]
[% WRAPPER section
title='SEE ALSO'
-%]<p>
[% ttlink('Template::Plugin', 'Template::Plugin') -%], [% ttlink('Template::Iterator', 'Template::Iterator') -%]
</p>
[%- END %]