Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 04603d1d41
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (36 sloc) 1.113 kb
%title= $title
%h2 Quick Notes
Text::Haml is usually indented with two spaces,
although more than two is allowed.
You have to be consistent, though.
The first character of any line is called
the "control character" - it says "make a tag"
or "run Ruby code" or all sorts of things.
Text::Haml takes care of nicely indenting your HTML.
Text::Haml allows Ruby code and blocks.
But not in this example.
We turned it off for security.
You can get more information by reading the
%a{:href => "/docs/yardoc/"}
Official Text::Haml Reference
This example doesn't allow Ruby to be executed,
but real Text::Haml does.
Ruby code is included by using = at the
beginning of a line.
Read the tutorial for more information.
Jump to Line
Something went wrong with that request. Please try again.