Created
September 8, 2011 07:06
-
-
Save shentonfreude/1202829 to your computer and use it in GitHub Desktop.
Chameleon template to alternate class="odd" or "even"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tbody> | |
<tal:block repeat="ur url_recs"> | |
<tr tal:define="odd repeat.ur.odd" | |
tal:attributes="class python: odd and 'odd' or 'even'"> | |
<td>${ur.datetime}</td> | |
<td>...</td> | |
</tr> | |
</tal:block> | |
</tbody> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment