#35899: Allow newlines in {% %} tags
-------------------------------------+-------------------------------------
Reporter: Anders Hovmöller | Type: New
| feature
Status: new | Component: Template
| system
Version: 5.0 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
That newlines inside `{% %}` is not allowed makes some formatting of
templates more ugly and bad for git blame. It also causes problems for
beginners, as the error message when you do this is not great.
We should allow this, as opt in with an option for the template engine as
a first step. Then progressively push people to this new world via
defaulting `createproject` to do this, deprecating the old, and then
moving over fully.
Full discussion:
https://forum.djangoproject.com/t/allow-newlines-inside-
tags/36040
--
Ticket URL: <
https://code.djangoproject.com/ticket/35899>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.