<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: GHRML &#8212; Haml for Genshi</title>
	<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/</link>
	<description>Armin Ronacher thinking</description>
	<pubDate>Sun, 12 Oct 2008 06:33:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Armin Ronacher</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-5074</link>
		<author>Armin Ronacher</author>
		<pubDate>Fri, 09 May 2008 12:42:05 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-5074</guid>
		<description>Regarding GHRML I'll post a blog post in the next two days about the current status. The only way currenty is the sandbox repository and you have to checkout the whole repository, not just a path of it which is not possible with mercurial currently.</description>
		<content:encoded><![CDATA[<p>Regarding GHRML I&#8217;ll post a blog post in the next two days about the current status. The only way currenty is the sandbox repository and you have to checkout the whole repository, not just a path of it which is not possible with mercurial currently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4986</link>
		<author>Damian</author>
		<pubDate>Thu, 08 May 2008 09:52:27 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4986</guid>
		<description>I fail to clone the pocoo sandbox repository. Hg says "abort: premature EOF reading chunk (got 195 bytes, expected 25582)". Could you please think of an alternative way to provide the source?</description>
		<content:encoded><![CDATA[<p>I fail to clone the pocoo sandbox repository. Hg says &#8220;abort: premature EOF reading chunk (got 195 bytes, expected 25582)&#8221;. Could you please think of an alternative way to provide the source?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rawagajah</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4731</link>
		<author>rawagajah</author>
		<pubDate>Mon, 05 May 2008 09:17:16 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4731</guid>
		<description>Bob [May 2nd, 2008], following on from my last comment. That change does make GHRML work with Genshi 0.4.4 well enough to process some simple templates, but ghrml/test.py still fails. To make that work, you'll need to switch to the Subversion version of Genshi (and in my case that means the allow_exec parameter should go back in, but basedir needs to be taken out)</description>
		<content:encoded><![CDATA[<p>Bob [May 2nd, 2008], following on from my last comment. That change does make GHRML work with Genshi 0.4.4 well enough to process some simple templates, but ghrml/test.py still fails. To make that work, you&#8217;ll need to switch to the Subversion version of Genshi (and in my case that means the allow_exec parameter should go back in, but basedir needs to be taken out)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rawagajah</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4678</link>
		<author>rawagajah</author>
		<pubDate>Sun, 04 May 2008 22:28:14 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4678</guid>
		<description>Bob [May 2nd, 2008], I had exactly the same problem with this same version - you can simply delete this parameter off the end of the call to MarkupTemplate.__init__ and it will work with Genshi 0.4.4</description>
		<content:encoded><![CDATA[<p>Bob [May 2nd, 2008], I had exactly the same problem with this same version - you can simply delete this parameter off the end of the call to MarkupTemplate.__init__ and it will work with Genshi 0.4.4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rawagajah</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4676</link>
		<author>rawagajah</author>
		<pubDate>Sun, 04 May 2008 21:52:16 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4676</guid>
		<description>To use GHRML templates in Django, borrow from the adaptor for Mako/Genshi in Django at http://www.djangosnippets.org/snippets/97/ , http://fuzzythinker.blogspot.com/2007/04/using-mako-in-django.html and apply this patch to genshi_django.py:

-loader = TemplateLoader(template_dirs, auto_reload=settings.DEBUG)
+loader = TemplateLoader(template_dirs, auto_reload=settings.DEBUG, default_class=GHRMLTemplate)</description>
		<content:encoded><![CDATA[<p>To use GHRML templates in Django, borrow from the adaptor for Mako/Genshi in Django at <a href="http://www.djangosnippets.org/snippets/97/" rel="nofollow">http://www.djangosnippets.org/snippets/97/</a> , <a href="http://fuzzythinker.blogspot.com/2007/04/using-mako-in-django.html" rel="nofollow">http://fuzzythinker.blogspot.com/2007/04/using-mako-in-django.html</a> and apply this patch to genshi_django.py:</p>
<p>-loader = TemplateLoader(template_dirs, auto_reload=settings.DEBUG)<br />
+loader = TemplateLoader(template_dirs, auto_reload=settings.DEBUG, default_class=GHRMLTemplate)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4442</link>
		<author>Bob</author>
		<pubDate>Fri, 02 May 2008 02:26:33 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-4442</guid>
		<description>This is great!  I'm really missing HAML in Python, and it seems like such a good fit.

However, I have a problem running your code:

Traceback (most recent call last):
  File "", line 21, in 
  File "C:\Code\ghrml\sandbox\ghrml\ghrml\template.py", line 41, in __init__
    allow_exec=allow_exec)
TypeError: __init__() got an unexpected keyword argument 'allow_exec'


which version of Genshi are you using?

I'm using 0.4.4

Would appreciate any hints.</description>
		<content:encoded><![CDATA[<p>This is great!  I&#8217;m really missing HAML in Python, and it seems like such a good fit.</p>
<p>However, I have a problem running your code:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 21, in<br />
  File &#8220;C:\Code\ghrml\sandbox\ghrml\ghrml\template.py&#8221;, line 41, in __init__<br />
    allow_exec=allow_exec)<br />
TypeError: __init__() got an unexpected keyword argument &#8216;allow_exec&#8217;</p>
<p>which version of Genshi are you using?</p>
<p>I&#8217;m using 0.4.4</p>
<p>Would appreciate any hints.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armin Ronacher</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2946</link>
		<author>Armin Ronacher</author>
		<pubDate>Fri, 21 Mar 2008 10:27:20 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2946</guid>
		<description>The sourecode is part of the pocoo sandbox hg repository: hg clone http://dev.pocoo.org/hg/sandbox</description>
		<content:encoded><![CDATA[<p>The sourecode is part of the pocoo sandbox hg repository: hg clone <a href="http://dev.pocoo.org/hg/sandbox" rel="nofollow">http://dev.pocoo.org/hg/sandbox</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby Ho</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2912</link>
		<author>Toby Ho</author>
		<pubDate>Wed, 19 Mar 2008 17:46:36 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2912</guid>
		<description>I am looking for something like this. Where is the code? I could not find it on your site. Thanks.</description>
		<content:encoded><![CDATA[<p>I am looking for something like this. Where is the code? I could not find it on your site. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandro</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2625</link>
		<author>sandro</author>
		<pubDate>Wed, 05 Mar 2008 06:20:49 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2625</guid>
		<description>awesome! I've been using haml for the past few weeks and get really disappointed when I have to revert back to xhtml. I'm really looking forward to using genshi now.</description>
		<content:encoded><![CDATA[<p>awesome! I&#8217;ve been using haml for the past few weeks and get really disappointed when I have to revert back to xhtml. I&#8217;m really looking forward to using genshi now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meneer R</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2283</link>
		<author>Meneer R</author>
		<pubDate>Mon, 18 Feb 2008 15:24:18 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/02/15/ghrml-haml-for-genshi/#comment-2283</guid>
		<description>This looks like ruby. 

A fragment for your imagination:

&lt;pre&gt;  %li[for item in navigation]
        %a{'href': item.href} $item.caption  &lt;/pre&gt;

woud be:

&lt;pre&gt;  navigation.foreach &#124;item&#124; -&#62;
     li.do
       a {href =&#62; item.href} item.caption
     end
  end&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This looks like ruby. </p>
<p>A fragment for your imagination:</p>
<pre>  %li[for item in navigation]
        %a{'href': item.href} $item.caption  </pre>
<p>woud be:</p>
<pre>  navigation.foreach |item| -&gt;
     li.do
       a {href =&gt; item.href} item.caption
     end
  end</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
