The principle
An ultra-lightweight markup language that goes hand in hand with Sass (which generates CSS), HAML (HTML Abstraction Markup Language) generates HTML. The aim is clearly to make HTML easier to work with by making it simple, clear and therefore very readable and maintainable to write.
Using it requires a certain rigour, as every space counts, just like indentation (considered here a real superpower). HAML also fits perfectly into application projects built with Ruby on Rails.
In short, it speeds up and simplifies certain aspects of turning your mock-ups into code.
A few advantages:
- makes your HTML simpler to write and maintain
- no HTML is generated if there is the slightest syntax error (so you stay fully in control)
- many add-ons, for TextMate, Vi, Aptana, NetBeans and jEdit
Going further with HAML
Official website: haml.info