O'Reilly logo

Instant Haml by Krzysztof Niksiński

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

Top 6 features you'll want to know about

After you are familiar with the basics of Haml usage, you will probably soon want to know how to write HTML tags in Haml in more detail. In the next pages, we will go through all the most important things you can do with Haml to speed up your Rails development. First, you will learn how to create all the HTML tags and will learn about various shortcuts in creating HTML documents. Next, you will learn about commenting the Ruby code, evaluating Ruby, and using filters and helpers. At the end, you will learn about Haml's configuration options.

Using HTML tags and attributes

Let's review how to create basic HTML tags and various types of attributes, ids and classes.

Creating basic tags

To create any HTML tag, use ...

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