Maybe use the custom template filters is a nice way~ http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-filters
2007/10/13, Nikola Stjelja <[EMAIL PROTECTED]>: > > > > On 10/13/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > > On 10/13/07, Goon <[EMAIL PROTECTED]> wrote: > > > fair enough, I'm not happy that I can't get {{for x in y[1:5]}} > > > What's the problem. You just send the template 'y':range(1,6). It's very > simple. I don't think the template system should be changed to do something > that the programming part of the presentation should do. It makes > unreadeble, unpractical html code which just gets in the way of practiacal > web development , it's not mantainance friendly. > > Perhaps the documentation will make you happy: > > > > http://www.djangoproject.com/documentation/templates/#slice > > > > -- > > "Bureaucrat Conrad, you are technically correct -- the best kind of > > correct." > > > > http://www.1km1kt.net/rpg/Marinci.php > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---