Changes between Initial Version and Version 1 of Ticket #3100, comment 19


Ignore:
Timestamp:
Dec 9, 2011, 12:18:31 PM (12 years ago)
Author:
Aymeric Augustin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3100, comment 19

    initial v1  
    99`parse_until` is used by tags that use final (or intermediary) tags, like `{% block ... %} {% endblock %}`, or `{% for ..%} {% empty %} {% endfor %}`. However, the current implementation requires that the exact content of the final (or intermediary) tag is known by the time the initial tag is compiled. This makes it impossible to have variable arguments on the intermediary tag.
    1010
    11 This feature is used to reject unmatched block/endblock tags: `{% block foo %}{% endblock bar %}`. I think this check should be delegated to the block tag itself. The alternative is to use Chris' technique — looking for an exact match by default, and for a prefix match for elements that end with a space — but it feels hackish.
     11This feature is used to reject unmatched block/endblock tags: `{% block foo %}{% endblock bar %}`. I think this check could be delegated to the block tag itself. The alternative is to use Chris' technique — looking for an exact match by default, and for a prefix match for elements that end with a space — but it feels hackish.
Back to Top