Skip to content

HTTPS clone URL

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
!!!
%html
%head
%title= $title
%body
#main
.note
%h2 Quick Notes
%ul
%li
Text::Haml is usually indented with two spaces,
although more than two is allowed.
You have to be consistent, though.
%li
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.
%li
Text::Haml takes care of nicely indenting your HTML.
%li
Text::Haml allows Ruby code and blocks.
But not in this example.
We turned it off for security.
.note
You can get more information by reading the
%a{:href => "/docs/yardoc/HAML_REFERENCE.md.html"}
Official Text::Haml Reference
.note
%p
This example doesn't allow Ruby to be executed,
but real Text::Haml does.
%p
Ruby code is included by using = at the
beginning of a line.
%p
Read the tutorial for more information.
Jump to Line
Something went wrong with that request. Please try again.