Django spaceless_except_pre

Spaceless With Preserved Pre Formatting

spaceless_except_pre is a template-tag that strips out all whitespaces and line breaks but unlike Django’s spaceless it preserves all formatting between <pre> tags.

This could be very usefull (and essential) if you want to minify your content and preserve code indention and spacing.

For further information, please checkout my post: Django Spaceless With Preserved Pre Formatting

Gist: https://gist.github.com/minddust/8196664