Buddy Burden wrote:
>       <tr>
>               [% FOREACH a IN aref %]
>                       <td>[% a.id %]</td>
>                       [% IF loop.count % 4 %]
>       </tr>
>       <tr>
>                       [% END %]
>               [% END %]
>       </tr>

The Table plugin is useful for things like this:

  [% USE Table(aref, cols=4) %]

  [% FOREACH row IN Table -%]
  <tr>
  [%   FOREACH item IN row -%]
    <td>[% item.id -%]</td>
  [%   END -%]
  </tr>
  [% END %]

HTH
A


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to