| 1 | #============================================================= -*-Perl-*- | ||
| 2 | # | ||
| 3 | # Template::Plugin::Iterator | ||
| 4 | # | ||
| 5 | # DESCRIPTION | ||
| 6 | # | ||
| 7 | # Plugin to create a Template::Iterator from a list of items and optional | ||
| 8 | # configuration parameters. | ||
| 9 | # | ||
| 10 | # AUTHOR | ||
| 11 | # Andy Wardley <abw@wardley.org> | ||
| 12 | # | ||
| 13 | # COPYRIGHT | ||
| 14 | # Copyright (C) 2000-2022 Andy Wardley. All Rights Reserved. | ||
| 15 | # | ||
| 16 | # This module is free software; you can redistribute it and/or | ||
| 17 | # modify it under the same terms as Perl itself. | ||
| 18 | # | ||
| 19 | #============================================================================ | ||
| 20 | |||
| 21 | package Template::Plugin::Iterator; | ||
| 22 | |||
| 23 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 1 | ▶ | use base 'Template::Plugin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | 1 | ▶ | use Template::Iterator; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | 1 | our $VERSION = '3.106'; | |
| 29 | |||
| 30 | #------------------------------------------------------------------------ | ||
| 31 | # new($context, \@data, \%args) | ||
| 32 | #------------------------------------------------------------------------ | ||
| 33 | |||
| 34 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 35 | 1 | my $class = shift; | |
| 36 | 1 | my $context = shift; | |
| 37 | 1 | Template::Iterator->new(@_); | |
| 38 | } | ||
| 39 | |||
| 40 | 1 | 1; | |
| 41 | |||
| 42 | __END__ | ||