1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Using Haml with Sinatra

By

3 of 7

A Quick Haml Tutorial

Tags are started in Haml using the percent sign (%). Any text that goes after this tag will go inside that tag. In addition, you can nest further tags and text inside this tag by indenting the text further than that of the tag. Here's a typical paragraph tag in both forms.

%p This is a paragraph
%p
  This is a paragraph that spans
  multiple lines.
See More About

©2014 About.com. All rights reserved.