Haml is a markup language (HTML abstraction markup language) without the use of inline code it describe the HTML of any web document cleanly and simply. It aims to reduce repetition in your markup by closing tags. It is a popular alternative to using Rails templating language (.erb) and allows you to embed Ruby code into your markup.Haml functions as a replacement for inline page templating systems such as PHP, ASP, and ERB, the templating language used in most Ruby on Rails applications.
Core Principles :
1. Markup Should be Beautiful
2. Markup Should be DRY
3. Markup Should be Well-Indented
4. HTML Structure Should be Clear
html to haml