Template::Plugin::Group is a fairly simple Perl module for grouping a list of things into a number of subgroups.
In this intial implementation you can only group ARRAY references, and they can only be grouped into groups of a numbered size.
In practical terms, you can make columns of things and you can break up a list into smaller chunks (for example to chop a large lists into a number of smaller lists for display purposes).
SYNOPSIS
# In your Template
[% USE rows = Group(cells, 3) %]
< table >
[% FOREACH row IN rows %]
< tr >
[% FOREACH cell IN rows %]
< td class="[% cell.class %]" >[% cell.content %]< /td >
[% END %]
< /tr >
[% END %]
< table >
Product's homepage
Requirements:
· Perl