{ "headers" : { "an XHTML XML prolog" : { "haml" : "!!! XML", "html" : "" }, "an XHTML default (transitional) doctype" : { "haml" : "!!!", "html" : "" }, "an XHTML 1.1 doctype" : { "haml" : "!!! 1.1", "html" : "" }, "an XHTML 1.2 mobile doctype" : { "haml" : "!!! mobile", "html" : "" }, "an XHTML 1.1 basic doctype" : { "haml" : "!!! basic", "html" : "" }, "an XHTML 1.0 frameset doctype" : { "haml" : "!!! frameset", "html" : "" }, "an HTML 5 doctype with XHTML syntax" : { "haml" : "!!! 5", "html" : "" }, "an HTML 5 XML prolog (silent)" : { "haml" : "!!! XML", "html" : "", "config" : { "format" : "html5" } }, "an HTML 5 doctype" : { "haml" : "!!!", "html" : "", "config" : { "format" : "html5" } }, "an HTML 4 XML prolog (silent)" : { "haml" : "!!! XML", "html" : "", "config" : { "format" : "html4" } }, "an HTML 4 default (transitional) doctype" : { "haml" : "!!!", "html" : "", "config" : { "format" : "html4" } }, "an HTML 4 frameset doctype" : { "haml" : "!!! frameset", "html" : "", "config" : { "format" : "html4" } }, "an HTML 4 strict doctype" : { "haml" : "!!! strict", "html" : "", "config" : { "format" : "html4" } } }, "basic Haml tags and CSS": { "a simple Haml tag" : { "haml" : "%p", "html" : "
" }, "a self-closing tag (XHTML)" : { "haml" : "%meta", "html" : "" }, "a self-closing tag (HTML4)" : { "haml" : "%meta", "html" : "", "config" : { "format" : "html4" } }, "a self-closing tag (HTML5)" : { "haml" : "%meta", "html" : "", "config" : { "format" : "html5" } }, "a tag with a CSS class" : { "haml" : "%p.class1", "html" : "" }, "a tag with multiple CSS classes" : { "haml" : "%p.class1.class2", "html" : "" }, "a tag with a CSS id" : { "haml" : "%p#id1", "html" : "" }, "a tag with multiple CSS id's" : { "haml" : "%p#id1#id2", "html" : "" }, "a tag with a class followed by an id" : { "haml" : "%p.class1#id1", "html" : "" }, "a tag with an id followed by a class" : { "haml" : "%p#id1.class1", "html" : "" }, "an implicit div with a CSS id" : { "haml" : "#id1", "html" : "" }, "an implicit div with a CSS class" : { "haml" : ".class1", "html" : "" }, "multiple simple Haml tags" : { "haml" : "%div\n %div\n %p", "html" : "hello
" }, "a tag with CSS" : { "haml" : "%p.class1 hello", "html" : "hello
" }, "multiple simple tags" : { "haml" : "%div\n %div\n %p text", "html" : "text
\n\n hello\n
" }, "a tag with CSS" : { "haml" : "%p.class1\n hello", "html" : "\n hello\n
" }, "multiple simple tags" : { "haml" : "%div\n %div\n %p\n text", "html" : "\n text\n
\nvalue
", "locals" : { "var" : "value" } }, "no interpolation when escaped" : { "haml" : "%p \\#{var}", "html" : "#{var}
" }, "interpolation when the escape character is escaped" : { "haml" : "%p \\\\#{var}", "html" : "\\value
", "locals" : { "var" : "value" } }, "interpolation inside filtered content" : { "haml" : ":plain\n #{var} interpolated: #{var}", "html" : "value interpolated: value", "locals" : { "var" : "value" } } }, "HTML escaping" : { "code following '&='" : { "haml" : "&= '<\"&>'", "html" : "<"&>" }, "code following '=' when escape_haml is set to true" : { "haml" : "= '<\"&>'", "html" : "<"&>", "config" : { "escape_html" : "true" } }, "code following '!=' when escape_haml is set to true" : { "haml" : "!= '<\"&>'", "html" : "<\"&>", "config" : { "escape_html" : "true" } } }, "Boolean attributes" : { "boolean attribute with XHTML" : { "haml" : "%input(checked=true)", "html" : "", "config" : { "format" : "xhtml" } }, "boolean attribute with HTML" : { "haml" : "%input(checked=true)", "html" : "", "config" : { "format" : "html5" } } } }