﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3351	Add block name to endblock (feature request)	yary h <spm-django@…>	Adrian Holovaty	"For some large pages, I find it useful to add comments showing the names of the blocks that an ""endblock"" is for:

{{{
{% block outer %}
  .. many lines here ...
  {% block inner %}
    .. etcetera ..
    {% block questions %}
    .. a whole lot of stuff here ..
    {% endblock %} {# questions #}
    ... etc ...
  {% endblock %} {# inner #}
  ... blah ...
{% endblock %} {# outer #}
}}}

The {{{ {# endblock comments #} }}} help me keep my sanity. What I'd like to do is write:

{{{
    {% endblock questions %}
    ... etc ...
  {% endblock inner %}
  ... blah ...
{% endblock outer %}
}}}

and have django make sure that the endblocks match with the named block. Helps with the ""internal documentation"" and helps me see the structure and catch cut/paste errors. The endblock naming would be purely optional, of course!"		closed	Template system	dev		fixed			Ready for checkin	1	0	0	0	0	0
