<?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: Get Rid of HTML Templates With HAML</title>
	<atom:link href="http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/</link>
	<description>Thoughts on programming, people and life</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:01:37 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Marc Weber</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-42780</link>
		<dc:creator>Marc Weber</dc:creator>
		<pubDate>Thu, 31 Mar 2011 23:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-42780</guid>
		<description>Its not about the syntax only: Its also about having proper quoting:

%div= &#039;&#039;

will always run htmlentities while

%div!= &#039;&#039;

will not (if the library was proberly implemented). haml-to-php.com is the only PHP HAML library which gets this right.

Now try writing option lists to see how easy it is:

%select
  - foreach(array(&#039;red,&#039;green&#039;) =&gt; $color)
     %option(value=$color selected=$color==&#039;red&#039;)$color

(Again: Most php implementations have a weak parser and can&#039;t parse this)
. I agree - you should have a create_html_for_select() function. Thus just a line with != such as:

!= create_html_for_select(array(&#039;red&#039;,&#039;green&#039;), &#039;red&#039;)

and != will insert the HTML verbatim into the template.</description>
		<content:encoded><![CDATA[<p>Its not about the syntax only: Its also about having proper quoting:</p>
<p>%div= &#8221;</p>
<p>will always run htmlentities while</p>
<p>%div!= &#8221;</p>
<p>will not (if the library was proberly implemented). haml-to-php.com is the only PHP HAML library which gets this right.</p>
<p>Now try writing option lists to see how easy it is:</p>
<p>%select<br />
  &#8211; foreach(array(&#8216;red,&#8217;green&#8217;) =&gt; $color)<br />
     %option(value=$color selected=$color==&#8217;red&#8217;)$color</p>
<p>(Again: Most php implementations have a weak parser and can&#8217;t parse this)<br />
. I agree &#8211; you should have a create_html_for_select() function. Thus just a line with != such as:</p>
<p>!= create_html_for_select(array(&#8216;red&#8217;,'green&#8217;), &#8216;red&#8217;)</p>
<p>and != will insert the HTML verbatim into the template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Lamb</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-23346</link>
		<dc:creator>Eric Lamb</dc:creator>
		<pubDate>Tue, 28 Dec 2010 21:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-23346</guid>
		<description>t uses regular expressions for the parsing which could get pretty CPU intensive so you&#039;d definitely want to cache the output to keep things running smooth.</description>
		<content:encoded><![CDATA[<p>t uses regular expressions for the parsing which could get pretty CPU intensive so you&#8217;d definitely want to cache the output to keep things running smooth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rizky Syazuli</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-21464</link>
		<dc:creator>Rizky Syazuli</dc:creator>
		<pubDate>Thu, 16 Dec 2010 04:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-21464</guid>
		<description>any comments on the performance issues? my previous experience with a templating engine is that they usually generate markup on-the-fly, which makes page rendering very slow. how does the phpHAML parser works anyway?</description>
		<content:encoded><![CDATA[<p>any comments on the performance issues? my previous experience with a templating engine is that they usually generate markup on-the-fly, which makes page rendering very slow. how does the phpHAML parser works anyway?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Larson</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-1898</link>
		<dc:creator>Elliot Larson</dc:creator>
		<pubDate>Sun, 07 Mar 2010 03:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-1898</guid>
		<description>Thanks for the tip.  We&#039;ve been using HAML with Rails and Sinatra for a couple of years now.  It definitely makes HTML template production about a hundred times easier.  We don&#039;t do a lot of work with PHP anymore, but for those legacy projects, or those projects where the client is dictating that we use something like PHP, we&#039;ll definitely be using the phpHAML parser.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip.  We&#8217;ve been using HAML with Rails and Sinatra for a couple of years now.  It definitely makes HTML template production about a hundred times easier.  We don&#8217;t do a lot of work with PHP anymore, but for those legacy projects, or those projects where the client is dictating that we use something like PHP, we&#8217;ll definitely be using the phpHAML parser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: templates applications &#124; TEMPLATES</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-1682</link>
		<dc:creator>templates applications &#124; TEMPLATES</dc:creator>
		<pubDate>Tue, 05 Jan 2010 20:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-1682</guid>
		<description>[...] Get Rid of HTML Templates With HAML &#124; Made of Everything You&#039;re &#8230;     Tags: content management open source, Joe, Joomla, open source web, template Published by admin on Jan 5, 2010 under 1 &#124; Post your comment now         Find out more:  here  templates adobe illustrator &#187; [...]</description>
		<content:encoded><![CDATA[<p>[...] Get Rid of HTML Templates With HAML | Made of Everything You&#39;re &#8230;     Tags: content management open source, Joe, Joomla, open source web, template Published by admin on Jan 5, 2010 under 1 | Post your comment now         Find out more:  here  templates adobe illustrator &raquo; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Weizenbaum</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-1679</link>
		<dc:creator>Nathan Weizenbaum</dc:creator>
		<pubDate>Tue, 05 Jan 2010 08:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-1679</guid>
		<description>Haml was indeed modeled after YAML.</description>
		<content:encoded><![CDATA[<p>Haml was indeed modeled after YAML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Hambach</title>
		<link>http://blog.ericlamb.net/2010/01/get-rid-of-html-templates-with-haml/comment-page-1/#comment-1666</link>
		<dc:creator>Thomas Hambach</dc:creator>
		<pubDate>Mon, 04 Jan 2010 08:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ericlamb.net/?p=2797#comment-1666</guid>
		<description>Wow, this certainly looks like overcomplicated HTML! I doubt I&#039;ll ever be using/recommending this...</description>
		<content:encoded><![CDATA[<p>Wow, this certainly looks like overcomplicated HTML! I doubt I&#8217;ll ever be using/recommending this&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

