O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HAML

HTML Abstraction Markup Language (HAML) is a templating engine that helps in writing cleaner and simpler HTML. For example, refer to the following table:

HTML

HAML

<body>
  <div id='comment'>
    <form>
      <input type='text'>
    </form>
  </div>
</body>

%body
  %div#comment
    %form
      %input{:type => 'text'}

We can see here how HAML is simpler and neater than HTML.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required