Allow newlines in {% %} tags
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
Change History
(5)
Has patch: |
unset
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to Anders Hovmöller
|
Status: |
new → assigned
|
Needs documentation: |
set
|
Patch needs improvement: |
set
|
Version: |
5.0 → dev
|
Needs documentation: |
unset
|
Accepting as there appears to be a consensus for wanting this as a feature, marking has patch as no as I don't think there is an open PR for this yet
I haven't thought through the implementation plan in detail but that can still be discussed