Skip to content

Comment on HAML: the unforgivable sin

Comments

I find HAML mostly just replaces Rails tag helpers.

instead of:

<%= tag "div", {:id => "city", :data => {:name => "Boise", :rating => "good"}} %>

I can do

#city{:data => {:name => "Boise", :rating => "good"}}

Which is basically the same thing. All haml does is encourage using a taghelper like syntax for everything.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.