home / django_tickets / tickets

tickets: 8652

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8652 2008-08-28 18:13:46 2008-10-03 01:51:15 2022-03-06 03:42:49.057104 Design decision needed closed Template system     dev wontfix Multiline tags and tag escape tags 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 %}" nobody Michael Manfre <mmanfre@gmail.com> escape multiline 0 1 0 0 0 0
Powered by Datasette · Queries took 1.206ms