Jacob Kaplan-Moss wrote:
> Howdy guys --
> 
> Just out of curiosity, have you tried using the {% spaceless %} tag?  
> What's it missing that you've needed to use middleware for?
> 
> (see http://www.djangoproject.com/documentation/templates/#spaceless)
>

while talking about {% spaceless %}....

wouldn't make sense to also have something like {% 
really_really_spaceless %}? which would, (surprise :-), make the html 
spaceless? :-)


i was actually quite confused... i assumed (by the name of the tag), 
that it would remove all the spaces, and seemed to me as a great 
solution. but then i found out, that it still keeps one space :-(

if we could ignore backwards-compatibility, i would recommend to have:

{% spaceless %}...this would completely strip all the whitespace. means 
this:
<ul>
        <li>1</li>
        <li>2</li>
</ul>
would become :<ul><li>1</li><li>2</li></ul>

{% normspaces %}...this would do what the current spaceless-tag does.

what do you think?

gabor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to