[Django] #26994: Remove blank line after template have been rendered

4 views
Skip to first unread message

Django

unread,
Aug 2, 2016, 10:45:21 AM8/2/16
to django-...@googlegroups.com
#26994: Remove blank line after template have been rendered
--------------------------------------+----------------------
Reporter: william1835 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: master
Severity: Normal | Keywords: template
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+----------------------
I have noticed that after a template in Django has been rendered, the
lines where the template tags and filters have been used still remain. I
know that this does not affect the outcome of the webpage as such, but it
is of slight annoyance, and could potentially increase page loading times.

Example (not realistic):
This:
{{{
{% load customFilters %}
<!DOCTYPE html>
<html>
</html>
}}}

is rendered as:

{{{

<!DOCTYPE html>
<html>
</html>
}}}

This can become noticeable in big files, especially when for loops are
used.
Thanks in advance

--
Ticket URL: <https://code.djangoproject.com/ticket/26994>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 2, 2016, 10:45:50 AM8/2/16
to django-...@googlegroups.com
#26994: Remove blank line after template have been rendered
-------------------------------------+-------------------------------------
Reporter: william1835 | Owner:
Type: | william1835
Cleanup/optimization | Status: assigned

Component: Template system | Version: master
Severity: Normal | Resolution:

Keywords: template | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by william1835):

* status: new => assigned
* needs_better_patch: => 0
* owner: nobody => william1835
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/26994#comment:1>

Django

unread,
Aug 2, 2016, 10:51:10 AM8/2/16
to django-...@googlegroups.com
#26994: Remove blank line after template have been rendered
-------------------------------------+-------------------------------------
Reporter: william1835 | Owner:
Type: | william1835
Cleanup/optimization | Status: closed

Component: Template system | Version: master
Severity: Normal | Resolution: duplicate

Keywords: template | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: assigned => closed
* resolution: => duplicate


Comment:

Duplicate of #2594

--
Ticket URL: <https://code.djangoproject.com/ticket/26994#comment:2>

Reply all
Reply to author
Forward
0 new messages