Re: styling with django templates

2010-06-08 Thread Venkatraman S
On Wed, Jun 9, 2010 at 3:57 AM, Nick wrote: > Boy, that just flew right past me. Ridiculous. Thanks everyone. > > On Jun 8, 1:06 pm, Dejan Noveski wrote: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for > > > > scroll a bit down to see the forloop object and its properties. >

Re: styling with django templates

2010-06-08 Thread Nick
Boy, that just flew right past me. Ridiculous. Thanks everyone. On Jun 8, 1:06 pm, Dejan Noveski wrote: > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for > > scroll a bit down to see the forloop object and its properties. > > > > On Tue, Jun 8, 2010 at 8:05 PM, Dejan Noveski wro

styling with django templates

2010-06-08 Thread Nick
I am looking for a way to identify the first item returned in a loop and display it differently than the others: basically it would go like: {% for item in items %} {% if is_first_item %} This is what will show {% else %} this is what will show {% endfor %} Am I overlooking some