[Radiant] Zebra striping using <r:children:each>?

Nathan Donaldson scarydog at mac.com
Tue Oct 17 17:45:11 CDT 2006


Kia ora all,

I was wondering what the easiest way to get zebra striping for 
<r:children:each> is?

In a rails app it would be:

<%- for item in @items do -%>
    <tr class="<%= cycle("even", "odd") %>">
      ... use item ...
    </tr>
  <%- end -%>


Any ideas :-)

Regards
Nathan

-- 
Posted via http://www.ruby-forum.com/.



More information about the Radiant mailing list