On Sat, 2007-06-02 at 06:07 -0700, Eugene Morozov wrote: > 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.
No, there isn't any builtin way to do this. Is having an empty <div> element really a problem? Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---