spacelessΒΆ

Removes whitespace between HTML tags.

Example:

{% spaceless %}
<div>
    <p>Test test test</p>
</div>
{% endspaceless %}

After rendering:

<div><p>Test test test</p></div>

Note

It will not remove other whitespace.

New in version 0.8.

Previous topic

regroup

Next topic

templatetag

Versions

Actions