djangosnippets.org: Latest snippets tagged with 'template tags'https://djangosnippets.org/tags/template-tags_1/2011-04-08T10:20:59.439319-05:00Smart Spaceless
2011-04-08T10:20:59.439319-05:00btaylordesignhttps://djangosnippets.org/snippets/2405/<p>This 'smart_spaceless' template tag is a replacement for Django's built-in 'spaceless'. If settings.DEBUG = True, spaces will not be removed to make debugging your template code easier. When DEBUG = False, spaces will be removed.</p>
<p>Happy coding!</p>
Freely redistributable