peterbe / django-static

Template tags for better serving static files from templates in Django
BSD 2-Clause "Simplified" License
193 stars 28 forks source link

Is it safe to use slimcontent html around other slimcontent tags ? #6

Open jfache opened 13 years ago

jfache commented 13 years ago

Hi there,

My question is pretty simple : is it safe to wrap a complete html page (including some js and css content slimming) or should I close my {% slimcontent "html" %} tag before any other slimming content tag and reopen it right after?

Thanks in advance!

peterbe commented 13 years ago

Have you tried it? I'm not sure how Django's templating engine works in terms of priorities.

dickbrouwer commented 13 years ago

Have you tried this? http://www.davidcramer.net/code/369/spaceless-html-in-django.html