Re: {% spaceless %} abuse (?)
On 6 juil. 2012, at 02:29, Micky Hulse <rgmicky@gmail.com> wrote:
> On Thu, Jul 5, 2012 at 5:00 PM, Russell Keith-Magee
> <russell@keith-magee.com> wrote:
>> Good question. I'm not really sure *what* it's supposed to be used
>> for. Trimming whitespace to reduce page size is one possible use; the
>
> If you develop for IE6, there's the IE6 whitespace bug. One fix, that
> I know of, is to remove all whitespace around the HTML.
>
> I never use the spaceless tag myself, but just thought I would mention
> another way one could utilize the tag.
>
An other use case is that whitespace is significant in parts of HTML: in code blocks of course but also *between inline elements*. In that case, spaceless tends to be more maintainable than removing all white space by hand end getting a single huge line.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home