incompatibilities/spec/render/attribute_spec.md in faml-0.3.4 vs incompatibilities/spec/render/attribute_spec.md in faml-0.3.5
- old
+ new
@@ -35,13 +35,161 @@
```html
<span class='foo bar foo'></span>
```
+# [./spec/render/attribute_spec.rb:67](../../../spec/render/attribute_spec.rb#L67)
+## Input
+```haml
+%span{class: []}
+```
+
+## Faml, Haml
+```html
+<span></span>
+
+```
+
+## Hamlit
+```html
+<span class=''></span>
+
+```
+
# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
## Input
```haml
+- v = [1, nil, false, true]
+%span{class: v}
+```
+
+## Faml, Haml
+```html
+<span class='1 true'></span>
+
+```
+
+## Hamlit
+```html
+<span class='1 false true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
+## Input
+```haml
+- h = { class: [1, nil, false, true] }
+%span{h}
+```
+
+## Faml, Haml
+```html
+<span class='1 true'></span>
+
+```
+
+## Hamlit
+```html
+<span class='1 false true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
+## Input
+```haml
+%span{class: [1, nil, false, true]}
+```
+
+## Faml, Haml
+```html
+<span class='1 true'></span>
+
+```
+
+## Hamlit
+```html
+<span class='1 false true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:81](../../../spec/render/attribute_spec.rb#L81)
+## Input
+```haml
+%span{id: []}
+```
+
+## Faml, Haml
+```html
+<span></span>
+
+```
+
+## Hamlit
+```html
+<span id=''></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+## Input
+```haml
+- v = [1, nil, false, true]
+%span{id: v}
+```
+
+## Faml, Haml
+```html
+<span id='1_true'></span>
+
+```
+
+## Hamlit
+```html
+<span id='1__false_true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+## Input
+```haml
+- h = { id: [1, nil, false, true] }
+%span{h}
+```
+
+## Faml, Haml
+```html
+<span id='1_true'></span>
+
+```
+
+## Hamlit
+```html
+<span id='1__false_true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+## Input
+```haml
+%span{id: [1, nil, false, true]}
+```
+
+## Faml, Haml
+```html
+<span id='1_true'></span>
+
+```
+
+## Hamlit
+```html
+<span id='1__false_true'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:91](../../../spec/render/attribute_spec.rb#L91)
+## Input
+```haml
%span{class: "x\"y'z"} hello
```
## Faml, Hamlit
```html
@@ -53,11 +201,11 @@
```html
<span class='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
+# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104)
## Input (with options={:format=>:xhtml})
```haml
- foo = true
%span{foo: foo, bar: 1} hello
```
@@ -72,11 +220,11 @@
```html
<span bar='1' foo='true'>hello</span>
```
-# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
+# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true, bar: 1}
%span{h} hello
```
@@ -91,11 +239,11 @@
```html
<span foo bar='1'>hello</span>
```
-# [./spec/render/attribute_spec.rb:91](../../../spec/render/attribute_spec.rb#L91)
+# [./spec/render/attribute_spec.rb:111](../../../spec/render/attribute_spec.rb#L111)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -109,11 +257,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:95](../../../spec/render/attribute_spec.rb#L95)
+# [./spec/render/attribute_spec.rb:115](../../../spec/render/attribute_spec.rb#L115)
## Input
```haml
- attrs = { foo: 1, bar: { hoge: :fuga }, baz: true }
%span{attrs} hello
@@ -135,11 +283,11 @@
```html
<span foo='1' bar-hoge='fuga' baz>hello</span>
```
-# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109)
+# [./spec/render/attribute_spec.rb:129](../../../spec/render/attribute_spec.rb#L129)
## Input
```haml
- data = { foo: 1 }
%span{foo: {bar: "x#{1}y"}} hello
@@ -155,11 +303,11 @@
```html
<span foo-bar='x1y'>hello</span>
```
-# [./spec/render/attribute_spec.rb:116](../../../spec/render/attribute_spec.rb#L116)
+# [./spec/render/attribute_spec.rb:136](../../../spec/render/attribute_spec.rb#L136)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -173,11 +321,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:139](../../../spec/render/attribute_spec.rb#L139)
+# [./spec/render/attribute_spec.rb:159](../../../spec/render/attribute_spec.rb#L159)
## Input
```haml
%span{data: {foo: 1, bar: 'baz', :hoge => :fuga, k1: { k2: 'v3' }}} hello
```
@@ -191,11 +339,11 @@
```html
<span data-foo='1' data-bar='baz' data-hoge='fuga' data-k1-k2='v3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:147](../../../spec/render/attribute_spec.rb#L147)
+# [./spec/render/attribute_spec.rb:167](../../../spec/render/attribute_spec.rb#L167)
## Input
```haml
%span{data: {foo: 1, bar: 2+3}} hello
```
@@ -209,11 +357,11 @@
```html
<span data-foo='1' data-bar='5'>hello</span>
```
-# [./spec/render/attribute_spec.rb:151](../../../spec/render/attribute_spec.rb#L151)
+# [./spec/render/attribute_spec.rb:171](../../../spec/render/attribute_spec.rb#L171)
## Input
```haml
- data = { foo: 1, bar: 2 }
%span{data: data} hello
@@ -229,11 +377,11 @@
```html
<span data-foo='1' data-bar='2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:169](../../../spec/render/attribute_spec.rb#L169)
+# [./spec/render/attribute_spec.rb:189](../../../spec/render/attribute_spec.rb#L189)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
@@ -249,11 +397,11 @@
```html
<span a='1' b='1'></span>
```
-# [./spec/render/attribute_spec.rb:176](../../../spec/render/attribute_spec.rb#L176)
+# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196)
## Input
```haml
%span{"foo\0bar" => "hello"}
```
@@ -267,11 +415,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:176](../../../spec/render/attribute_spec.rb#L176)
+# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196)
## Input
```haml
- val = "hello"
%span{"foo\0bar" => val}
@@ -287,10 +435,10 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:176](../../../spec/render/attribute_spec.rb#L176)
+# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196)
## Input
```haml
- key = "foo\0bar"
- val = "hello"
%span{key => val}