Hi,
I'm wondering if the following is possible with django templates. I
would like to override a given parent block, while maintaining the
contents of it's child block:
base.html:
{% block firstblock %}
<div>
Bla bla bla
{% block secondblock %} ble ble ble {% endblock %}
</div>
{% endblock %}
inherited.html:
{% extends "base.html" %}
{% block firstblock %}
<div>
this is being overriden
{% block secondblock %} {{ block.super }} {% endblock %}
</div>
{% endblock %}
I have a case similar with this one, which is not working as I thought
it would ( {{ block.super }} is outputting nothing, instead of the
value from the parent template). Might I be doing something wrong or
is this the expected behavior?
thanks,
Filipe Correia
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---