Hi!
I see both of your points, but I should also mention that a better
example than what I provided is when you want to have a block inside an
if-statement, which is not possible today:
{% if myvariable %}
{% block myblock %}my content{% endblock %}
{% endif %}
Correct me if I'm wrong but the same exact behaviour can be achieved by:
{% block myblock %}
{% if myvariable %}
my content
{% else %}
{{ block.super }}
{% endif %}
{% endblock myblock %}
--
unai
--
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 [email protected].
To post to this group, send email to [email protected].
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/20150131181257.GN6883%40def.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
