Hubwiz.com
|
Online Course
|
API Manual
Haml API Manual
Method(27)
Option(19)
Guide(42)
Filter(15)
Method
action_view?
block_is_haml?
capture_haml
escape_once
find_and_preserve
haml_concat
haml_indent
haml_tag
haml_tag_if
html_attrs
html_escape
init_haml_helpers
is_haml?
list_of
non_haml
precede
preserve
succeed
surround
tab_down
tab_up
with_tabs
defined
register_tilt_filter
remove_filter
page_class
with_raw_haml_concat
Option
:attr_wrapper
:autoclose
:cdata
:compiler_class
:encoding
:escape_attrs
:escape_filter_interpolations
:escape_html
:filename
:filters
:format
:hyphenate_data_attrs
:line
:mime_type
:parser_class
:preserve
:remove_whitespace
:suppress_eval
:trace
Guide
Features
Using Haml
Rails XSS Protection
Ruby Module
Options
Encodings
Plain Text
Escaping: \
HTML Elements
Element Name: %
Attributes: {} or ()
:class and :id Attributes
HTML-style Attributes: ()
Ruby 1.9-style Hashes
Attribute Methods
Boolean Attributes
Prefixed Attributes
Class and ID: . and #
Implicit Div Elements
Empty (void) Tags: /
Whitespace Removal: > and <
Object Reference: []
Doctype: !!!
Comments
HTML Comments: /
Conditional Comments: /[]
Haml Comments: -#
Ruby Evaluation
Inserting Ruby: =
Running Ruby: -
Ruby Blocks
Whitespace Preservation: ~
Ruby Interpolation: #{}
Gotchas
Escaping HTML: &=
Unescaping HTML: !=
Filters
Custom Filters
Helper Methods
Multiline: |
Whitespace Preservation
Helpers
Filter
:cdata
:coffee
:css
:erb
:escaped
:javascript
:less
:markdown
:maruku
:plain
:preserve
:ruby
:sass
:scss
:textile