Even more confusing, but extremely great to abuse!

base.html
    {% block a %}{% endblock %}
    {% block b %}{% endblock %}
    {% block c %}{% endblock %}
    {% block d %}{% endblock %}
    {% block e %}{% endblock %}

index.html
    {% block a %}
    {% block b %}
    {% block c %}
    {% block d %}
    {% block e %}
    duplicate
    {% endblock %}
    {% endblock %}
    {% endblock %}
    {% endblock %}
    {% endblock %}


This will print "duplicate", 5 times, and cover cases that a for-loop
can't because all the different blocks in base.html can be spread over
the whole template, whereever you want. :)

-- 
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.

Reply via email to