On Jul 5, 2:25 pm, Torsten Bronger <bron...@physik.rwth-aachen.de>
wrote:
> Hall chen!
>
> George Sakkis writes:
> > [...]
>
> > To be honest, I never *had to* do it (in the strict sense) either
> > but apparently others did ([1-4]). As for the "just put it in the
> > view" argument, remember that until last month this was the
> > response for people wanting "if" to be a bit smarter :)
>
> People will want to do *everything* in the template.  The lowest
> rated snippet on djangosnippets currently is an {% exec %} tag.  :-)

But then again there is a {% switch %} tag [1] that has 8/8 positive
votes, let alone the "smart" {% if %} tag that is at last part of
Django now. I'm curious if break/continue or the just posted {% while
%} tag [2] will end up closer to switch or to exec :-)

George

[1] http://djangosnippets.org/snippets/967/
[2] http://djangosnippets.org/snippets/2096/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to