There's a special syntax for making div tags with class or id attributes. The following shows both the normal form and the shorthand form.
%div{:class => "title"}
This is a title
.title
This is a title
%div{:id => "header"}
This is the page header
#header
This is the page header

