Templaite:display li items alternatively using for

0 views
Skip to first unread message

Xian Chen

unread,
Nov 1, 2008, 1:58:09 AM11/1/08
to django...@googlegroups.com
Hi,

I want to display a list of items by using {% for item in items %}.

To make the web pages look better, I want to use two kinds of <li> alternatively.

E.G <li class="one">item</li>
       <li class="two">item</li>

My question is how can i use the tags to implement this requirement?

Any build-in tags for this?

Thanks in advance,

Karen Tracey

unread,
Nov 1, 2008, 3:14:38 AM11/1/08
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages