Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Report abuse
<ol py:def="expand(items)"> <li py:for="idx, item in enumerate(items)" class="${idx % 2 and 'odd' or 'even'}">${item.label} <py:if test="items.childs">${expand(item.childs)}</py:if> </li> </ol>
Pasted November 08, 200612:11PM EDT
by chris (chris)
Embed
Ads from Ruby Row