#3100: Support for arguments on intermediate tag tokens (ex. {% if arg %}{% elif
arg %}{% endif %})
---------------------------------------------------------------+------------
Reporter: Eric Van Dewoestine <[email protected]> | Owner:
adrian
Status: reopened | Milestone:
Component: Template system | Version:
SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch:
1
Needs_docs: 0 | Needs_tests:
1
Needs_better_patch: 1 |
---------------------------------------------------------------+------------
Changes (by danring):
* cc: danring (added)
Comment:
The patch just added breaks the regressiontests.templates
'namedendblocks0?' by failing to raise TemplateSyntaxError when {%
endblock %} tags are out of order. (Since endblock tags are the only
(core) tags where the endtag has an argument.)
So two possibilities are:
1. remove those tests - seems okay to me, since the named-endblock tags
are for readability anyway, rather than providing functionality; also,
named endblocks are only used (at least in trunk) in contrib.gis
javascripts.
2. make additional changes in template.loader_tags.do_block to force
strict checking of endblock tags there
Which would be the desired route? Or something altogether different?
--
Ticket URL: <http://code.djangoproject.com/ticket/3100#comment:7>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---