incompatibilities/spec/render/attribute_spec.md in faml-0.6.0 vs incompatibilities/spec/render/attribute_spec.md in faml-0.6.1
- old
+ new
@@ -1,6 +1,6 @@
-# [./spec/render/attribute_spec.rb:48](../../../spec/render/attribute_spec.rb#L48)
+# [./spec/render/attribute_spec.rb:49](../../../spec/render/attribute_spec.rb#L49)
## Input
```haml
- h1 = {class: 'c1', id: ['id1', 'id3']}
- h2 = {class: [{}, 'c2'], id: 'id2'}
%span#main.content{h1, h2} hello
@@ -17,11 +17,11 @@
```html
<span class='c1 content c2 {}' id='main_id1_id3_id2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
+# [./spec/render/attribute_spec.rb:62](../../../spec/render/attribute_spec.rb#L62)
## Input
```haml
%span.foo{class: "foo bar"}
```
@@ -35,11 +35,11 @@
```html
<span class='foo bar foo'></span>
```
-# [./spec/render/attribute_spec.rb:67](../../../spec/render/attribute_spec.rb#L67)
+# [./spec/render/attribute_spec.rb:68](../../../spec/render/attribute_spec.rb#L68)
## Input
```haml
%span{class: []}
```
@@ -53,11 +53,11 @@
```html
<span class=''></span>
```
-# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
+# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
## Input
```haml
%span{class: [1, nil, false, true]}
```
@@ -71,11 +71,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
+# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
## Input
```haml
- v = [1, nil, false, true]
%span{class: v}
```
@@ -90,11 +90,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:71](../../../spec/render/attribute_spec.rb#L71)
+# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
## Input
```haml
- h = { class: [1, nil, false, true] }
%span{h}
```
@@ -109,11 +109,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:81](../../../spec/render/attribute_spec.rb#L81)
+# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
## Input
```haml
%span{id: []}
```
@@ -127,11 +127,11 @@
```html
<span id=''></span>
```
-# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
## Input
```haml
%span{id: [1, nil, false, true]}
```
@@ -145,11 +145,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
## Input
```haml
- v = [1, nil, false, true]
%span{id: v}
```
@@ -164,11 +164,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:85](../../../spec/render/attribute_spec.rb#L85)
+# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
## Input
```haml
- h = { id: [1, nil, false, true] }
%span{h}
```
@@ -183,11 +183,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:91](../../../spec/render/attribute_spec.rb#L91)
+# [./spec/render/attribute_spec.rb:92](../../../spec/render/attribute_spec.rb#L92)
## Input
```haml
%span{class: "x\"y'z"} hello
```
@@ -201,11 +201,11 @@
```html
<span class='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109)
+# [./spec/render/attribute_spec.rb:110](../../../spec/render/attribute_spec.rb#L110)
## Input (with options={:format=>:xhtml})
```haml
- foo = true
%span{foo: foo, bar: 1} hello
```
@@ -220,11 +220,11 @@
```html
<span bar='1' foo='true'>hello</span>
```
-# [./spec/render/attribute_spec.rb:109](../../../spec/render/attribute_spec.rb#L109)
+# [./spec/render/attribute_spec.rb:110](../../../spec/render/attribute_spec.rb#L110)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true, bar: 1}
%span{h} hello
```
@@ -239,11 +239,11 @@
```html
<span foo bar='1'>hello</span>
```
-# [./spec/render/attribute_spec.rb:116](../../../spec/render/attribute_spec.rb#L116)
+# [./spec/render/attribute_spec.rb:117](../../../spec/render/attribute_spec.rb#L117)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -257,11 +257,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:120](../../../spec/render/attribute_spec.rb#L120)
+# [./spec/render/attribute_spec.rb:121](../../../spec/render/attribute_spec.rb#L121)
## Input
```haml
- attrs = { foo: 1, bar: { hoge: :fuga }, baz: true }
%span{attrs} hello
@@ -283,11 +283,11 @@
```html
<span foo='1' bar-hoge='fuga' baz>hello</span>
```
-# [./spec/render/attribute_spec.rb:134](../../../spec/render/attribute_spec.rb#L134)
+# [./spec/render/attribute_spec.rb:135](../../../spec/render/attribute_spec.rb#L135)
## Input
```haml
- data = { foo: 1 }
%span{foo: {bar: "x#{1}y"}} hello
@@ -303,11 +303,11 @@
```html
<span foo-bar='x1y'>hello</span>
```
-# [./spec/render/attribute_spec.rb:141](../../../spec/render/attribute_spec.rb#L141)
+# [./spec/render/attribute_spec.rb:142](../../../spec/render/attribute_spec.rb#L142)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -321,11 +321,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:164](../../../spec/render/attribute_spec.rb#L164)
+# [./spec/render/attribute_spec.rb:165](../../../spec/render/attribute_spec.rb#L165)
## Input
```haml
%span{data: {foo: 1, bar: 'baz', :hoge => :fuga, k1: { k2: 'v3' }}} hello
```
@@ -339,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:172](../../../spec/render/attribute_spec.rb#L172)
+# [./spec/render/attribute_spec.rb:173](../../../spec/render/attribute_spec.rb#L173)
## Input
```haml
%span{data: {foo: 1, bar: 2+3}} hello
```
@@ -357,11 +357,11 @@
```html
<span data-foo='1' data-bar='5'>hello</span>
```
-# [./spec/render/attribute_spec.rb:176](../../../spec/render/attribute_spec.rb#L176)
+# [./spec/render/attribute_spec.rb:177](../../../spec/render/attribute_spec.rb#L177)
## Input
```haml
- data = { foo: 1, bar: 2 }
%span{data: data} hello
@@ -377,11 +377,11 @@
```html
<span data-foo='1' data-bar='2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:194](../../../spec/render/attribute_spec.rb#L194)
+# [./spec/render/attribute_spec.rb:195](../../../spec/render/attribute_spec.rb#L195)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
@@ -397,11 +397,11 @@
```html
<span a='1' b='1'></span>
```
-# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201)
+# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202)
## Input
```haml
%span{"foo\0bar" => "hello"}
```
@@ -415,11 +415,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201)
+# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202)
## Input
```haml
- val = "hello"
%span{"foo\0bar" => val}
@@ -435,11 +435,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:201](../../../spec/render/attribute_spec.rb#L201)
+# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202)
## Input
```haml
- key = "foo\0bar"
- val = "hello"
%span{key => val}
@@ -457,11 +457,11 @@
(eval):3: syntax error, unexpected =>
...::Temple::Utils.escape_html((=> val))); _buf << ("'></span>\...
... ^
```
-# [./spec/render/attribute_spec.rb:215](../../../spec/render/attribute_spec.rb#L215)
+# [./spec/render/attribute_spec.rb:216](../../../spec/render/attribute_spec.rb#L216)
## Input
```haml
%span[Faml::TestStruct.new(123)] hello
```
@@ -475,11 +475,11 @@
```html
<span>[Faml::TestStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:219](../../../spec/render/attribute_spec.rb#L219)
+# [./spec/render/attribute_spec.rb:220](../../../spec/render/attribute_spec.rb#L220)
## Input
```haml
%span[Faml::TestStruct.new(123), :hello] hello
```
@@ -493,11 +493,11 @@
```html
<span>[Faml::TestStruct.new(123), :hello] hello</span>
```
-# [./spec/render/attribute_spec.rb:223](../../../spec/render/attribute_spec.rb#L223)
+# [./spec/render/attribute_spec.rb:224](../../../spec/render/attribute_spec.rb#L224)
## Input
```haml
%span[Faml::TestRefStruct.new(123)] hello
```
@@ -511,11 +511,11 @@
```html
<span>[Faml::TestRefStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:227](../../../spec/render/attribute_spec.rb#L227)
+# [./spec/render/attribute_spec.rb:228](../../../spec/render/attribute_spec.rb#L228)
## Input
```haml
%span#baz[Faml::TestStruct.new(123)]{id: "foo"} hello
```
@@ -526,8 +526,294 @@
```
## Hamlit
```html
<span id='baz'>[Faml::TestStruct.new(123)]{id: "foo"} hello</span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+%span{foo: 1}(foo=2)
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='1' foo='2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+%span(foo=2){foo: 1}
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='2' foo='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+- v = 2
+%span{foo: v-1}(foo=v)
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='1' foo='2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+- v = 2
+%span(foo=v){foo: v-1}
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='2' foo='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+- h = {foo: 1}
+%span{h}(foo=2)
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='1' foo='2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234)
+## Input
+```haml
+- h = {foo: 1}
+%span(foo=2){h}
+```
+
+## Faml, Haml
+```html
+<span foo='1'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='1' foo='2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:245](../../../spec/render/attribute_spec.rb#L245)
+## Input
+```haml
+%span{class: 1}(class=2)
+```
+
+## Faml, Hamlit
+```html
+<span class='1 2'></span>
+
+```
+
+## Haml
+```html
+<span class='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:245](../../../spec/render/attribute_spec.rb#L245)
+## Input
+```haml
+- v = 2
+%span{class: v-1}(class=v)
+```
+
+## Faml, Hamlit
+```html
+<span class='1 2'></span>
+
+```
+
+## Haml
+```html
+<span class='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:245](../../../spec/render/attribute_spec.rb#L245)
+## Input
+```haml
+- h = {class: 1}
+%span{h}(class=2)
+```
+
+## Faml, Hamlit
+```html
+<span class='1 2'></span>
+
+```
+
+## Haml
+```html
+<span class='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+%span{id: 1}(id=2)
+```
+
+## Faml
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
+
+```
+
+## Hamlit
+```html
+<span id='1_2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+%span(id=2){id: 1}
+```
+
+## Faml, Hamlit
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+- v = 2
+%span{id: v-1}(id=v)
+```
+
+## Faml, Hamlit
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+- v = 2
+%span(id=v){id: v-1}
+```
+
+## Faml, Hamlit
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+- h = {id: 1}
+%span{h}(id=2)
+```
+
+## Faml, Hamlit
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
+## Input
+```haml
+- h = {id: 1}
+%span(id=2){h}
+```
+
+## Faml, Hamlit
+```html
+<span id='2_1'></span>
+
+```
+
+## Haml
+```html
+<span id='1'></span>
```