Hello,
I have a question which might be trivial to answer, but I didn't found
answer by scanning the docs.
In my base template I have defined inset block:
      <div id="inset">
        {% block inset %}{% endblock %}
      </div>
I want to remove <div id="inset"></div> tags if derived template
doesn't fill in the inset block. Of course I can add the tags to all
inset blocks in the derived templates, but this would look bad and
contradict DRY principle.

Are there more elegant solutions?
Thanks,
Eugene


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

Reply via email to