# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
## Input
```haml
%span{foo: "x\"y'z"}hello
```
## Faml, Hamlit
```html
hello
```
## Haml
```html
hello
```
# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
## Input
```haml
- v = "x\"y'z"
%span{foo: v}hello
```
## Faml, Hamlit
```html
hello
```
## Haml
```html
hello
```
# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
## Input
```haml
- h = {foo: "x\"y'z"}
%span{h}hello
```
## Faml, Hamlit
```html
hello
```
## Haml
```html
hello
```
# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
## Input (with options={:format=>:xhtml})
```haml
- v = true
%span{foo: v}hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
hello
```
# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true}
%span{h}hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
hello
```
# [./spec/render/attribute_spec.rb:75](../../../spec/render/attribute_spec.rb#L75)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
## Input
```haml
%span{"foo\0bar" => "hello"}
```
## Faml, Haml
```html
bar='hello'>
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
## Input
```haml
- val = "hello"
%span{"foo\0bar" => val}
```
## Faml, Haml
```html
bar='hello'>
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
## Input
```haml
- key = "foo\0bar"
- val = "hello"
%span{key => val}
```
## Faml, Haml
```html
bar='hello'>
```
## Hamlit (Error)
```html
(eval):3: syntax error, unexpected =>
...::Temple::Utils.escape_html((=> val))); _buf << ("'>\...
... ^
```
# [./spec/render/attribute_spec.rb:96](../../../spec/render/attribute_spec.rb#L96)
## Input
```haml
%span[Faml::TestStruct.new(123)] hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
[Faml::TestStruct.new(123)] hello
```
# [./spec/render/attribute_spec.rb:100](../../../spec/render/attribute_spec.rb#L100)
## Input
```haml
%span[Faml::TestStruct.new(123), :hello] hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
[Faml::TestStruct.new(123), :hello] hello
```
# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104)
## Input
```haml
%span[Faml::TestRefStruct.new(123)] hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
[Faml::TestRefStruct.new(123)] hello
```
# [./spec/render/attribute_spec.rb:108](../../../spec/render/attribute_spec.rb#L108)
## Input
```haml
%span#baz[Faml::TestStruct.new(123)]{id: "foo"} hello
```
## Faml, Haml
```html
hello
```
## Hamlit
```html
[Faml::TestStruct.new(123)]{id: "foo"} hello
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
%span{foo: 1}(foo=2)
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
%span(foo=2){foo: 1}
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
- v = 2
%span{foo: v-1}(foo=v)
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
- v = 2
%span(foo=v){foo: v-1}
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
- h = {foo: 1}
%span{h}(foo=2)
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
- h = {foo: 1}
%span(foo=2){h}
```
## Faml, Haml
```html
```
## Hamlit
```html
```
# [./spec/render/attribute_spec.rb:133](../../../spec/render/attribute_spec.rb#L133)
## Input
```haml
%span{id: 1}(id=2)
```
## Faml, Haml
```html
```
## Hamlit
```html
```