Haml Documentation
Main Page
Filters
:cdata
:coffee
:css
:erb
:escaped
:javascript
:less
:markdown
:maruku
:plain
:preserve
:ruby
:sass
:scss
:textile
Guides
:class and :id Attributes
Attributes: {} or ()
Boolean Attributes
Class Name Merging and Ordering
Class and ID: . and #
Comments
Conditional Comments: /[]
Custom Filters
Data Attributes
Doctype: !!!
Element Name: %
Empty (void) Tags: /
Escaping HTML: &=
Escaping: \
Features
Filters
Gotchas
HTML Comments: /
HTML Elements
HTML-style Attributes: ()
Haml Comments: -#
Implicit Div Elements
Inserting Ruby: =
Multiline: |
Object Reference: []
Options
Plain Text
Ruby 1.9-style Hashes
Ruby Blocks
Ruby Evaluation
Ruby Interpolation: #{}
Ruby Module
Running Ruby: -
Turbo
Unescaping HTML: !=
Using Haml
Whitespace Preservation
Whitespace Preservation: ~
Whitespace Removal: > and <
Methods
compile
initialize
preserve
registered
remove_filter