- h1 = { foo: 'should be overwritten' }
- h2 = { foo: nil }
%a {h1, h2}
%span {foo: "x\"y'z"}hello
< span foo ='x"y'z '> hello</ span >
< span foo ='x"y'z '> hello</ span >
- v = " x\" y'z"
%span {foo: v}hello
< span foo ='x"y'z '> hello</ span >
< span foo ='x"y'z '> hello</ span >
- h = {foo: " x\" y'z" }
%span {h}hello
< span foo ='x"y'z '> hello</ span >
< span foo ='x"y'z '> hello</ span >
Input (with options={:format=>:xhtml})
< span foo ='foo '> hello</ span >
< span foo ='true '> hello</ span >
Input (with options={:format=>:xhtml})
- v = true
%span {foo: v}hello
< span foo ='foo '> hello</ span >
< span foo ='true '> hello</ span >
Input (with options={:format=>:xhtml})
- h = {foo: true}
%span {h}hello
< span foo ='foo '> hello</ span >
< span foo ='true '> hello</ span >
- val = " hello"
%span {"foo\0bar" => val}
< span foo < 0x00 > bar='hello'> </ span >
< span foo\0bar ='hello '> </ span >
%span [Faml::TestRefStruct.new(123)] hello
< span class ='faml_test ' id ='faml_test_123 '> hello</ span >
< span class ='faml_test_ref_struct ' id ='faml_test_ref_struct_123 '> hello</ span >