On Tue, 2009-03-31 at 16:51 -0700, Chris O'Donnell wrote: > Hello all, > > Here's my dilemma: I want every fourth item displayed using a {% for > %} loop to be rendered using a different block of HTML. This want is > specific to a CSS framework I'm using, Blueprint CSS. Any of you that > use it and haven't modified its source know that for the last column > in the grid, class="span-whatever last" needs to be specified. Just > wondering if anyone knows how to do this.
This came up in a thread yesterday ([1]). The answer is to use the divisbleby filter on forloop.counter. [1] http://groups.google.com/group/django-users/browse_thread/thread/d59e51d897118259/c8a58c03fb531b30?lnk=gst&q=divisibleby#c8a58c03fb531b30 Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---