On Sat, Nov 1, 2008 at 1:58 AM, Xian Chen <[EMAIL PROTECTED]> wrote: > 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? >
Yes: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---