-1 on removing spaceless. On pages where you have lots of rows in a loop, the amount of whitespace you end up with can massively increase page loading times.
Sure, you could use whitespace stripping middleware I guess, but some people prefer not to have that. I agree that spaceless does make code look a little ugly, but without you would end up with people putting big loops on 1 single line, just to avoid the whitespace. Cal On Fri, Jul 6, 2012 at 2:38 PM, Masklinn <[email protected]> wrote: > On 6 juil. 2012, at 02:29, Micky Hulse <[email protected]> wrote: > > > On Thu, Jul 5, 2012 at 5:00 PM, Russell Keith-Magee > > <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

