News for hackers. Stuff that matters.
Re:HAML: the unforgivable sin by lucisferre on Wednesday November 30, 2011 @11:14AM (#3295498)
Wow, there's no hyperbole in this title.

Come on, it took me less than a day to become familiar and comfortable with HAML (on first glance I would have agreed with the readability criticism).

As for usefulness, it has several features I find really useful:

1. Using CSS style syntax to define divs

2. Inline ':markdown', ':textile', etc. for content

3. Really convenient way to inline javascript also great for UJS

4. A much cleaner looking syntax for using helpers and in-lining ruby

I will partially give into the author's claim that it does require you be a bit more careful, the white space formatting bites me in the ass from time to time. I occasionally run into bugs that are a bit confusing with code blocks and helpers, however it isn't a big enough problem for me to want to switch back to ERB.

There are no comments on this comment yet.