What is HAML?

satya - Mon Jun 11 2012 17:13:54 GMT-0400 (Eastern Daylight Time)

at wikipedia

at wikipedia

satya - Tue Jun 12 2012 07:47:14 GMT-0400 (Eastern Daylight Time)

So what is it!

On a quick look, this appears to be an effort to be "sanitorial"!!

Banter aside this appears to be an effort to declutter html templating pages with a bit cleaner approach, but yet free spaces play a role.

satya - Tue Jun 12 2012 07:49:22 GMT-0400 (Eastern Daylight Time)

A taste


#profile
  .left.column
    #date= print_date
    #address= current_user.address
  .right.column
    #email= current_user.email
    #bio= current_user.bio

satya - Tue Jun 12 2012 07:50:32 GMT-0400 (Eastern Daylight Time)

Generated html


<div id="profile">
  <div class="left column">
    <div id="date"><%= print_date %></div>
    <div id="address"><%= current_user.address %></div>
  </div>
  <div class="right column">
    <div id="email"><%= current_user.email %></div>
    <div id="bio"><%= current_user.bio %></div>
  </div>
</div>

satya - Tue Jun 12 2012 07:51:06 GMT-0400 (Eastern Daylight Time)

Home page for HAML

Home page for HAML