Template::Plugin::ListMoreUtilsVMethods - TT2 plugin to use List::MoreUtils as virtual methods of lists
[% my1to9even = [ 2, 4, 6, 8 ]; my1to9prim = [ 2, 3, 5, 7 ]; my1to9odd = [ 1, 3, 5, 7, 9 ]; %] [% USE ListMoreUtilsVMethods %] [% my1and9 = my1to9all.minmax; %] [% my1and9[0] %] is the smalled number of 1 .. 9, the largest is [% my1and9[1] %]
This module provides an Template::Toolkit interface to Tassilo von Parseval's List::MoreUtils. It extends the built-in functions dealing with lists as well as Template::Plugin::ListUtil.
To use this module from templates, you can choose between class interface
The functions/methods provided are the same as in Template::Plugin::ListMoreUtils, regardless the preferred interface.
Except the typical limitations known from perl functions embedded in Template::Toolkit, the only limitation I currently miss is being able to use TT2 defined macros as callback.
Free support can be requested via regular CPAN bug-tracking system. There is no guaranteed reaction time or solution time. It depends on business load. That doesn't mean that ticket via rt aren't handles as soon as possible, that means that soon depends on how much I have to do.
Business and commercial support should be aquired via preferred freelancer agencies.
Jens Rehsack CPAN ID: REHSACK rehsack@cpan.org http://search.cpan.org/~rehsack/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1), List::MoreUtils, <Template::Plugin::VMethods>
To install Template::Plugin::ListMoreUtils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::ListMoreUtils
CPAN shell
perl -MCPAN -e shell install Template::Plugin::ListMoreUtils
For more information on module installation, please visit the detailed CPAN module installation guide.