But you, the programmer, still have to manage which class to use for which row.[% classes = ['odd','even'] %] [% BLOCK row %] [% class = classes.shift %] <tr> <td class="[% class %]">[% person.name %]</td> <td class="[% class %]">[% person.age %]</td> <td class="[% class %]">[% person.weight %]</td> </tr> [% classes.push(class) %] [% END %]
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to 3Re: HTATR II: HTML table generation via DWIM tree rewriting
by jeffa
in thread HTATR II: HTML table generation via DWIM tree rewriting
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |