Which is, I guess, why it is the block tag's behavior that would need to
change rather than the if tag's, if support for blocks inside if tags were
to be implemented.

Have not had a look myself at this though, but I too was confused the first
few times I tried to put blocks in if statements and not getting it to work.

On Sun, Feb 1, 2015 at 2:57 PM, Raphael Michel <m...@raphaelmichel.de>
wrote:

> Hi,
>
> Am Sat, 31 Jan 2015 22:36:05 +0100
> schrieb Aymeric Augustin <aymeric.augus...@polytechnique.org>:
> > I suspect it has to do with {% if %} being interpreted at runtime
> > while {% block %} is interpreted at compile time.
> >
> > I never investigated this fully. If someone does, I’m interested :-)
>
> This was my guess as well. However, if this indeed is the reason, then
> a {% block … if … %} syntax would make it impossible to interpret
> blocks at compile time, and I don't think Markus' proposal (or the {%
> if %}{% block %} syntax, which I do like more than {% block if %}) is
> worth that effort.
>
> Raphael
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/20150201145722.76fae6d0%40arlen
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAOXH8SXSrtayTnVk2XktkFDoOXsurJpW9WWJcdWFOT3aRLayAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to