#8652: Multiline tags and tag escape tags
------------------------------------------------+---------------------------
Reporter: Michael Manfre <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Milestone: 1.0
Component: Template system | Version: SVN
Keywords: escape multiline | Stage: Unreviewed
Has_patch: 1 |
------------------------------------------------+---------------------------
Multiline tag support would help make templates more readable and allow
support for the ability to escape chunks of a template so that they are
not parsed.
Multiline tag example:
{# This is a length comment that would benefit from multiple lines
due to its verbosity or some other reason #}
Tag escaping:
I have run in to the need to display template syntax to the end user.
Being able to escape a chunk of the text so that the template parser
ignores it would clean up the existing template. Some of the existing
methods for passing template syntax through the parser unmolested is to
use html entity escaping to trick the lexer, or use the very verbose
"templatetag" tag.
Attached is a patch that provides the mentioned multiline tag support and
provides tags that allow escaping blocks of template text.
Escaping example:
"{$ {% if foo %}...{% endif %} $}" would output "{% if foo %}...{% endif
%}"
--
Ticket URL: <http://code.djangoproject.com/ticket/8652>
Django Code <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
-~----------~----~----~----~------~----~------~--~---