Hi,
After so much success with me writing what I thought would work
and TT just Doing What I Mean I was surprised when loop.count
didn't work here in a WHILE loop like so:
[% WHILE ( obj = iterator.next ) %]
[% rowAttr = loop.count mod 2 ? '' : 'class="altRow"' %]
<tr[% " $rowAttr" %]>
<td> [% obj.something %]</td>
<td> [% obj.otherthing %]</td>
</tr>
[% END %]
I managed to work around it by using my own counter but I want to put in a
feature request for WHILE loops to support the "loop" special variable.
I'd be willing to take a shot at it if someone would tell me where I
should be looking.
Thanks,
Clayton
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates