Hacker News new | ask | show | jobs
by ryan_f 4883 days ago
I know a lot of ruby on rails developers who use HAML for their template framework instead of ERB. Some people prefer HAML's use of indentation instead of using tags to enclose everything.

I like it in my projects mostly for how clean and easy it is to read. It takes a little bit to get used to initially but it is worth it.

1 comments

...and you can combine it with Sass for CSS. Sass gives you features that CSS misses like inheritence which makes your style sheets much more DRY.

BTW, both Haml and Sass go very nicely with Sinatra... ;)

SASS also works for ERB. They are independent but I do agree that they are great together.
Is there some SASS integration in HAML beyond regular HTML?