djangosnippets.org: Latest snippets tagged with 'ugly'https://djangosnippets.org/tags/ugly/2008-01-30T10:54:39.795875-06:00HTML Prettifier
2008-01-30T10:54:39.795875-06:00Eloffhttps://djangosnippets.org/snippets/570/<p>Tired of scrolling through hundreds of lines of code where the indentation is maddening?</p>
<p>Here's a middleware class that prettifys your html markup so it's nice and consistently indented. Intended only for debugging, and I add it to the middleware stack conditionally on TEMPLATE_DEBUG. Requires BeautifulSoup.</p>
Freely redistributable