« November 2006 | Main

March 18, 2007

HAML anybody?

I just came across this by complete accident (well, actually, I came across a URL in OpenACS source code and wondered if the website still existed, then found this linked article).

HAML is

a markup language that’s used to cleanly and simply describe the XHTML of any web document without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ASP, and ERB, the templating language used in most Ruby on Rails applications. However, Haml avoids the need for explicitly coding XHTML into the template, because it iself is a description of the XHTML, with some code to generate dynamic content.

Check out the tutorial for an example of what HAML looks like. Although said by the authors and so biased I find the following quote quite interesting:

In fact, the entire company's development team quickly shrugged of RHTML completely and have gone entirely to Haml based development. As Canada's largest Rails web developers this was no trivial task.