On Wed, Apr 17, 2013 at 10:50 AM, Emil Stenström <[email protected]> wrote:
> {% extends "base.html" %}
> {% block content %}
>     <div class="warning">Be careful when changing these settings!</div>
>     {% block content %}{% endblock %}
> {% endblock %}

I find this intensely confusing -- I can't build a mental model of
what's going to be rendered there. Allowing re-definining of existing
blocks nested inside those blocks... ouch. I'm -1 on allowing this; it
just seems incredibly confusing and error prone.

The general way I've solved this in the past is pretty straightforward::

    {% block content-wrapper %}
        <div class="warning">Be careful when changing these settings!</div>
        {% block content %}{% endblock %}
    {% endblock %}

What's wrong with this?

Jacob

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to