A quick reference for HAML. See more information about HAML here: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html
|
!!!
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
!!! 5
|
<!DOCTYPE html>
|
|
!!! Strict
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
!!! Frameset
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
|
:plain
|
Does not parse the filtered text. This is useful for large blocks of text without HTML tags, when you don’t want lines starting with . or - to be parsed.
|
|
:javascript
|
Surrounds the filtered text with <script> and CDATA tags. Useful for including inline Javascript.
|
|
:css
|
Surrounds the filtered text with <style> and CDATA tags. Useful for including inline CSS.
|
|
:sass
|
Parses the filtered text with Sass to produce CSS output.
|
|
:textile
|
Parses the filtered text with Textile.
|
|
:makuru
|
Parses the filtered text with Maruku, which has some non-standard extensions to Markdown.
|
The HTML example is incorrect. The HAML code has "and" in place of '&'.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.