On 10/13/07, beck917 <[EMAIL PROTECTED]> wrote: > > Maybe use the custom template filters is a nice way~ > > http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-filters >
Yep. The point is: less programming in html, the better. That's the reason most experienced php developers adopt one templating system, or the other(or write their own as I did). I think djangos templating system is nice and clean, and thats the best compliment a ts can receive in my opinion. 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 > > > > > > > > > > > > > > > > -- Please visit this site and play my RPG! 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 -~----------~----~----~----~------~----~------~--~---