Templat...terator(3)
okay bestie, welcome to the Templat...terator(3) page from the User Contributed Perl Documentation crew β yes, the header truncates the name like that, and it's giving βmy terminal is a little dramaticβ energy. The actual module is Template::Plugin::Iterator, and we're about to make iterators make sense, no cap. π
πΈ NAME πΈ
Template::Plugin::Iterator β Plugin to create iterators (Template::Iterator). That's the whole name-section moment, and it ate. π
β¨ SYNOPSIS β¨
okay so the template vibes look like this β keep it exact, bestie:
[% USE iterator(list, args) %]
[% FOREACH item = iterator %]
[% '<ul>' IF iterator.first %]
<li>[% item %]
[% '</ul>' IF iterator.last %]
[% END %]
π 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.
That's the whole plot: FOREACH is doing its automatic implicit thing, and this plugin is your main character move for naming an iterator explicitly. π«Ά
π AUTHOR π
Andy Wardley β <abw@wardley.org> and <http://wardley.org/>. iconic. π
π COPYRIGHT π
Copyright (C) 1996-2022 Andy Wardley. All Rights Reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
free-software slay, with the same terms as Perl itself. π
π¦ SEE ALSO π¦
Template::PluginTemplate::Iterator
go peek at those next, bestie β they're the supporting cast. π¦
later bestie π
β source/version is perl v5.42.0, dated 2024-06-23, and the footer manual name is Templat...terator(3). stay iconic π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms