<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spaceless HTML in Django</title>
	<atom:link href="http://www.davidcramer.net/code/369/spaceless-html-in-django.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html</link>
	<description>A blog about Django, JavaScript, CSS, and general web development.</description>
	<lastBuildDate>Tue, 09 Mar 2010 21:59:12 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John1297</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20794</link>
		<dc:creator>John1297</dc:creator>
		<pubDate>Wed, 20 May 2009 22:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20794</guid>
		<description>Very nice site! cheap cialis http://opeaixy.com/qsqaxa/4.html</description>
		<content:encoded><![CDATA[<p>Very nice site! cheap cialis <a href="http://opeaixy.com/qsqaxa/4.html" rel="nofollow">http://opeaixy.com/qsqaxa/4.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lericson</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20645</link>
		<dc:creator>lericson</dc:creator>
		<pubDate>Mon, 23 Feb 2009 14:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20645</guid>
		<description>There are bigger fish to fry.</description>
		<content:encoded><![CDATA[<p>There are bigger fish to fry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martyn Clement</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20601</link>
		<dc:creator>Martyn Clement</dc:creator>
		<pubDate>Thu, 08 Jan 2009 11:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20601</guid>
		<description>I suggest this tag should be effective only on setting debug=False
Debugging html on viewing html source code is quite common. 
That&#039;s what I did ;)</description>
		<content:encoded><![CDATA[<p>I suggest this tag should be effective only on setting debug=False<br />
Debugging html on viewing html source code is quite common.<br />
That&#8217;s what I did <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal Matthews</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20580</link>
		<dc:creator>Dougal Matthews</dc:creator>
		<pubDate>Sun, 21 Dec 2008 04:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20580</guid>
		<description>Shame it messes up the pre and textarea tags :( was gonna use it otherwise.

Intersting idea though!</description>
		<content:encoded><![CDATA[<p>Shame it messes up the pre and textarea tags <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  was gonna use it otherwise.</p>
<p>Intersting idea though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal Matthews</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20579</link>
		<dc:creator>Dougal Matthews</dc:creator>
		<pubDate>Sun, 21 Dec 2008 04:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20579</guid>
		<description>Shame it messes up the &lt;pre&gt; and  tags :( was gonna use it otherwise.

Intersting idea though!</description>
		<content:encoded><![CDATA[<p>Shame it messes up the
<pre> and  tags <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  was gonna use it otherwise.

Intersting idea though!</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Kelly</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20551</link>
		<dc:creator>Chris Kelly</dc:creator>
		<pubDate>Tue, 09 Dec 2008 22:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20551</guid>
		<description>The whitespace tag is really simple, it just finds the end of one tag and the beginning of another with whitespace in between, and removes said whitespace. It looks like it doesn&#039;t have any special cases, so it unfortunately affects textarea and pre tag content. &lt;br&gt;&lt;br&gt;see: &lt;a href=&quot;http://code.djangoproject.com/browser/django/trunk/django/utils/html.py#L60&quot; rel=&quot;nofollow&quot;&gt;http://code.djangoproject.com/browser/django/tr...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>The whitespace tag is really simple, it just finds the end of one tag and the beginning of another with whitespace in between, and removes said whitespace. It looks like it doesn&#39;t have any special cases, so it unfortunately affects textarea and pre tag content. </p>
<p>see: <a href="http://code.djangoproject.com/browser/django/trunk/django/utils/html.py#L60" rel="nofollow"></a><a href="http://code.djangoproject.com/browser/django/tr.." rel="nofollow">http://code.djangoproject.com/browser/django/tr..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cramer</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20540</link>
		<dc:creator>David Cramer</dc:creator>
		<pubDate>Fri, 05 Dec 2008 11:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20540</guid>
		<description>We GZIP as well. Sadly, everyone&#039;s still not on broadband today, so even shaving off 5 or 10k from the request can be quite useful (especially when the amount of time it takes to do that is immeasurable).</description>
		<content:encoded><![CDATA[<p>We GZIP as well. Sadly, everyone&#39;s still not on broadband today, so even shaving off 5 or 10k from the request can be quite useful (especially when the amount of time it takes to do that is immeasurable).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cramer</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20539</link>
		<dc:creator>David Cramer</dc:creator>
		<pubDate>Fri, 05 Dec 2008 11:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20539</guid>
		<description>Uneducated trolls.. sound like something that every community is famous for.</description>
		<content:encoded><![CDATA[<p>Uneducated trolls.. sound like something that every community is famous for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20538</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 05 Dec 2008 11:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20538</guid>
		<description>solving a non-issue with a sub-optimal technique and posting a blag about it... this feels like the type of publicity the rails community is so famous for...</description>
		<content:encoded><![CDATA[<p>solving a non-issue with a sub-optimal technique and posting a blag about it&#8230; this feels like the type of publicity the rails community is so famous for&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florent V.</title>
		<link>http://www.davidcramer.net/code/369/spaceless-html-in-django.html/comment-page-1#comment-20535</link>
		<dc:creator>Florent V.</dc:creator>
		<pubDate>Thu, 04 Dec 2008 15:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=369#comment-20535</guid>
		<description>Hello,&lt;br&gt;&lt;br&gt;I&#039;m curious: why outputting whitespace-less HTML when you could just use gzip compression on the server for HTML, XML, CSS and JavaScript, and get better results (like from 300 kB -- not kb ;) -- to, say, 120 kB)? Did you do some performance testing regarding that?&lt;br&gt;&lt;br&gt;Unless gzipping your text output has a clear performance cost, I would keep my HTML code with whitespace (if not perfect, then at least decently readable code). Makes it easier to debug when you need to check the real thing (Firebug only shows what Firefox understands, not what it gets from the server).&lt;br&gt;&lt;br&gt;Do you happen to use this method, then gzip (through mod_deflate for instance)? If so, how much do you save compared to a gzipped version with all whitespace intact?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#39;m curious: why outputting whitespace-less HTML when you could just use gzip compression on the server for HTML, XML, CSS and JavaScript, and get better results (like from 300 kB &#8212; not kb <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8212; to, say, 120 kB)? Did you do some performance testing regarding that?</p>
<p>Unless gzipping your text output has a clear performance cost, I would keep my HTML code with whitespace (if not perfect, then at least decently readable code). Makes it easier to debug when you need to check the real thing (Firebug only shows what Firefox understands, not what it gets from the server).</p>
<p>Do you happen to use this method, then gzip (through mod_deflate for instance)? If so, how much do you save compared to a gzipped version with all whitespace intact?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
