<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 13:43:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Templating with Haml]]></title>
      <guid>http://www.phpdeveloper.org/news/15104</guid>
      <link>http://www.phpdeveloper.org/news/15104</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has <a href="http://www.codediesel.com/tools/templating-with-haml/">posted about an alternative templating system</a> that's currently being used in multiple languages - <a href="http://en.wikipedia.org/wiki/Haml">Haml</a> (HTML Abstraction Markup Language). As <i>Sameer</i> points out, there's also a <a href="http://phphaml.sourceforge.net/">PHP port</a> of it.
</p>
<blockquote>
It has been a while since I've used a template engine during development, the last one I used was <a href="http://www.smarty.net/">Smarty</a>. Now there are a plethora of template systems, but most are a rehash of Smarty. Readers may beg to differ, but Smarty gets the work done, which is all that matters. The one that I found really interesting is <a href="http://haml-lang.com/">Haml</a>.
</blockquote>
<p>
He includes some markup examples of how it's structured - the main structure of the site, tables, divs, etc - and what it comes out like on the other side of the parser. The <a href="http://phphaml.sourceforge.net/">phphaml</a> and <a href="http://code.google.com/p/phamlp/">phamlp</a> libraries let you run the template through with variable values set and display it. There are some downsides he mentions, though, like the rules on indentation and that the markup has to be all in one file (or combined before sending to be rendered).
</p>]]></description>
      <pubDate>Thu, 09 Sep 2010 12:51:40 -0500</pubDate>
    </item>
  </channel>
</rss>
