[ZPT] Add 'parity' to repeat?

Dieter Maurer dieter at handshake.de
Tue Aug 26 22:48:25 EDT 2003


Evan Simpson wrote at 2003-8-25 13:52 -0500:
 > The use of "python:test(path('repeat/thing/odd'), 'odd', 'even')" and 
 > variants has become so common as to merit its own method.
 > 
 > I suggest that 'parity()' be added to the stock repeat object.  It would 
 > return the string "odd" or "even", depending on the repetition index.

I do not feel very well. "odd" and "even" are not very expressive
names for style sheet classes and "parity" is not associated
with the even/odd distinction (but this may have been caused
by my non-english mother tongue).


Dieter



More information about the ZPT mailing list