23 Aug
2004
23 Aug
'04
8:47 p.m.
On Aug 23, 2004, at 2:11 PM, angryhicKclown@netscape.net wrote:
If I have a table, and I want the background colors to alternate, how would I do that in Nevow?
You just supply multiple pattern nodes with the same name, and nevow will cycle through them when it is copying them. For example, if you are rendering a list of items in a table, you would supply more than one 'item' pattern node: <table nevow:render="sequence" nevow:data="whatever"> <tr nevow:pattern="item" style="background-color: blue"> ... </tr> <tr nevow:pattern="item" style="background-color: red"> ... </tr> </table> dp