On Thu, May 27, 2010 at 4:36 PM, Tom X. Tobin <[email protected]> wrote: > On Thu, May 27, 2010 at 7:36 AM, Tom Evans <[email protected]> wrote: >> Most PHP templating languages allow you to do things that are by >> design not in django's templating, for example in Smarty, one can >> assign new variables on the fly in the template, and even do crazy >> stuff like call functions that take arguments. > > This isn't impossible; you can write custom template tags that can > pretty much do anything (e.g., assign variables). Whether I'd > *recommend* you do so is another matter; the abuse potential is high. > :-) >
It's not 'in the template' though is it - a programmer has added the tag to use. I'm not saying django doesn't give you ways to shoot yourself in the foot, its just that to do so in django, you really have to set up a tripod, aim the laser sight at your foot, take the safety off and pull the trigger hard. In lots of other templating languages, you can shoot yourself and not notice that you're limping for months. This is silly, I think the last 8 replies to this have been us all agreeing in slightly different ways! Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
