<?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"
	>
<channel>
	<title>Comments on: Django-like filters for Kid (and Genshi)</title>
	<atom:link href="http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/</link>
	<description>The Ramblings of a Freelance Software Developer</description>
	<pubDate>Sun, 12 Oct 2008 13:55:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: pens</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-6675</link>
		<dc:creator>pens</dc:creator>
		<pubDate>Sat, 29 Sep 2007 08:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-6675</guid>
		<description>Hello nice blog! !! 
&lt;a href="http://www.mykaraokecdg.com.au/skin1/buttons/CVS/o/index.php" rel="nofollow"&gt;pen&lt;/a&gt; 
It's my new page.about pens.</description>
		<content:encoded><![CDATA[<p>Hello nice blog! !!<br />
<a href="http://www.mykaraokecdg.com.au/skin1/buttons/CVS/o/index.php" rel="nofollow">pen</a><br />
It&#8217;s my new page.about pens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filters 0.1 Released &#124; Nadav Samet&#8217;s Blog</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-949</link>
		<dc:creator>Filters 0.1 Released &#124; Nadav Samet&#8217;s Blog</dc:creator>
		<pubDate>Thu, 07 Dec 2006 09:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-949</guid>
		<description>[...] After implementing this in a form of patches for Kid and Genshi, Christopher Lenz from Genshi suggested a way to implement this externally to the parsers. The idea is based on this recipe from the Python Cookbook. This solution enjoys the benefits of using pure Python syntax. This means that we are now using single bar (&#124;) again. [...]</description>
		<content:encoded><![CDATA[<p>[...] After implementing this in a form of patches for Kid and Genshi, Christopher Lenz from Genshi suggested a way to implement this externally to the parsers. The idea is based on this recipe from the Python Cookbook. This solution enjoys the benefits of using pure Python syntax. This means that we are now using single bar (|) again. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Italo Maia</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-948</link>
		<dc:creator>Italo Maia</dc:creator>
		<pubDate>Thu, 07 Dec 2006 00:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-948</guid>
		<description>Oh well, can't think of something better either. Pipes are so perfect :p. Double pipe won't kill me. ^^</description>
		<content:encoded><![CDATA[<p>Oh well, can&#8217;t think of something better either. Pipes are so perfect :p. Double pipe won&#8217;t kill me. ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-947</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Wed, 06 Dec 2006 21:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-947</guid>
		<description>Italo, The problem is that one &#124; is a Python operator. It leads to ambiguous expressions. Unfortunately also &gt; and &gt;&gt; are taken. But I'm open to suggestions.

Patching Genshi was basically dropping the same lines of code, but elsewhere. Genshi itself does things a lot differently than Kid.</description>
		<content:encoded><![CDATA[<p>Italo, The problem is that one | is a Python operator. It leads to ambiguous expressions. Unfortunately also > and >> are taken. But I&#8217;m open to suggestions.</p>
<p>Patching Genshi was basically dropping the same lines of code, but elsewhere. Genshi itself does things a lot differently than Kid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Italo Maia</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-946</link>
		<dc:creator>Italo Maia</dc:creator>
		<pubDate>Wed, 06 Dec 2006 17:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-946</guid>
		<description>Maybe using pipes with widgets would be nice too. Nadav, what about using double dollar. Like $${}? Would that be very hard to implement, instead of using double pipes? Or ${"some_output &#124; lower &#124; prettier &#124; hot_chik_pretty &#124; turbogears_pretty"} using string. Double pipes seems so wrong to my eyes...(but i'll use it anyway :P)

ps: Would patching Genshi the same way as patching kid?</description>
		<content:encoded><![CDATA[<p>Maybe using pipes with widgets would be nice too. Nadav, what about using double dollar. Like $${}? Would that be very hard to implement, instead of using double pipes? Or ${&#8221;some_output | lower | prettier | hot_chik_pretty | turbogears_pretty&#8221;} using string. Double pipes seems so wrong to my eyes&#8230;(but i&#8217;ll use it anyway :P)</p>
<p>ps: Would patching Genshi the same way as patching kid?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-944</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Wed, 06 Dec 2006 08:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-944</guid>
		<description>Jorge, 

It is very often than you need to truncate a very long string or convert a boolean to 'yes' or 'no'. It is a form of representation that shouldn't be kept in the db. 

There are forms of representations that are tightly coupled with the template. For example, when a design of a web page becomes narrower, your want to truncate the strings even more.</description>
		<content:encoded><![CDATA[<p>Jorge, </p>
<p>It is very often than you need to truncate a very long string or convert a boolean to &#8216;yes&#8217; or &#8216;no&#8217;. It is a form of representation that shouldn&#8217;t be kept in the db. </p>
<p>There are forms of representations that are tightly coupled with the template. For example, when a design of a web page becomes narrower, your want to truncate the strings even more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorge.vargas</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-943</link>
		<dc:creator>jorge.vargas</dc:creator>
		<pubDate>Wed, 06 Dec 2006 07:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-943</guid>
		<description>/me puts the tomatoes down.... this seems interesting

so the idea is to have a library of filters with common functions....

ok real world test now just one question why will it be usefull to have all this on output side? I mean if I'm always going to 

${ story.text &#124;&#124; escape &#124;&#124; linebreaks }

why not process that when it gets input do it ones and store it like that on the db? 

it could be usefull for something very dynamic but I don't see much use (other then being cool) on output.

now implementing it as a decorator or even as some sort of validator could be a more "usefull" way of having pipes.</description>
		<content:encoded><![CDATA[<p>/me puts the tomatoes down&#8230;. this seems interesting</p>
<p>so the idea is to have a library of filters with common functions&#8230;.</p>
<p>ok real world test now just one question why will it be usefull to have all this on output side? I mean if I&#8217;m always going to </p>
<p>${ story.text || escape || linebreaks }</p>
<p>why not process that when it gets input do it ones and store it like that on the db? </p>
<p>it could be usefull for something very dynamic but I don&#8217;t see much use (other then being cool) on output.</p>
<p>now implementing it as a decorator or even as some sort of validator could be a more &#8220;usefull&#8221; way of having pipes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Italo Maia</title>
		<link>http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-939</link>
		<dc:creator>Italo Maia</dc:creator>
		<pubDate>Wed, 06 Dec 2006 00:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/04/django-like-filters-for-kid/#comment-939</guid>
		<description>TOO COOL!!! I wanted something like that for a long time! Pipe with templates are really cool!!! Now, we need it with genshi heheh :P.</description>
		<content:encoded><![CDATA[<p>TOO COOL!!! I wanted something like that for a long time! Pipe with templates are really cool!!! Now, we need it with genshi heheh :P.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.243 seconds -->
