This is great, but why oh why do people still use HAML over SLIM[1] as their templating language?
% is unnecessary, and I find slim's attribute handling far superior to clunky haml, and to top it all off slim compiles faster than haml.
% is unnecessary, and I find slim's attribute handling far superior to clunky haml, and to top it all off slim compiles faster than haml.
When you write your views in ERB, your tutorial's accessible to everyone who's used Rails, and the HAML / Slim / Mustache / Liquid / whatever people can convert them over easily. When you write your views with something other than ERB, someone who's only familiar with ERB has a much harder task, especially if they're new to Rails and don't know much about alternate templating languages.