Reputation: 12378
If I'm using {% spaceless %}<html></html>{% endspaceless %}
in my templates, but I only want the spaceless function on only when I'm not debugging, how can do this? I tried using {% if %}{% spaceless %}{% endif %}
, but that's an error.
Thanks!
Upvotes: 0
Views: 387
Reputation: 34553
I wrote just such a tag and put it on Django Snippets: http://djangosnippets.org/snippets/2405/ Enjoy!
Upvotes: 3