Re: even and odd numbers within a template

2009-11-24 Thread Kevin Renskers
{% for o in some_list %} ... {% endfor %} On Nov 24, 2:39 pm, Juan Hernandez wrote: > Hey there people... > > I've been coloring html tables using javascript for a while and now, we need > to color our tables just with html. The CSS has been made to use one color > for even row

Re: even and odd numbers within a template

2009-11-24 Thread Colin Copeland
Juan, The "cycle" template tag may help you here: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle colin On Nov 24, 2009, at 8:39 AM, Juan Hernandez wrote: > Hey there people... > > I've been coloring html tables using javascript for a while and now, we need > to color ou