John,
I ended up using this:
[% IF loop.count < aref.size AND loop.count % 4 == 0 %]
</tr><tr>
[% END %]
Seems to be working well.
Hmmm ... yes, I see why you needed the extra bit. My code didn't take into account the possibility that there might be
an number of rows in the array which was exactly evenly divisible by four, thus giving you an extra blank row at the
end. But I'd say that the way you've written the code, which perfectly workable, is a bit obscure ... why not something
clearer, such as:
[% IF loop.count % 4 == 0 AND NOT loop.last %]
-- Buddy
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates