incompatibilities/spec/render/attribute_spec.md in faml-0.6.2 vs incompatibilities/spec/render/attribute_spec.md in faml-0.6.3
- old
+ new
@@ -35,13 +35,51 @@
```html
<span class='foo bar foo'></span>
```
-# [./spec/render/attribute_spec.rb:68](../../../spec/render/attribute_spec.rb#L68)
+# [./spec/render/attribute_spec.rb:62](../../../spec/render/attribute_spec.rb#L62)
## Input
```haml
+- v = 'foo bar'
+%span.foo{class: v}
+```
+
+## Faml, Haml
+```html
+<span class='bar foo'></span>
+
+```
+
+## Hamlit
+```html
+<span class='foo foo bar'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:62](../../../spec/render/attribute_spec.rb#L62)
+## Input
+```haml
+- h = {class: 'foo bar'}
+%span.foo{h}
+```
+
+## Faml, Haml
+```html
+<span class='bar foo'></span>
+
+```
+
+## Hamlit
+```html
+<span class='foo foo bar'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:80](../../../spec/render/attribute_spec.rb#L80)
+## Input
+```haml
%span{class: []}
```
## Faml
```html
@@ -53,11 +91,11 @@
```html
<span class=''></span>
```
-# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
+# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
## Input
```haml
%span{class: [1, nil, false, true]}
```
@@ -71,11 +109,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
+# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
## Input
```haml
- v = [1, nil, false, true]
%span{class: v}
```
@@ -90,11 +128,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:72](../../../spec/render/attribute_spec.rb#L72)
+# [./spec/render/attribute_spec.rb:84](../../../spec/render/attribute_spec.rb#L84)
## Input
```haml
- h = { class: [1, nil, false, true] }
%span{h}
```
@@ -109,11 +147,11 @@
```html
<span class='1 false true'></span>
```
-# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
+# [./spec/render/attribute_spec.rb:94](../../../spec/render/attribute_spec.rb#L94)
## Input
```haml
%span{id: []}
```
@@ -127,11 +165,11 @@
```html
<span id=''></span>
```
-# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
+# [./spec/render/attribute_spec.rb:98](../../../spec/render/attribute_spec.rb#L98)
## Input
```haml
%span{id: [1, nil, false, true]}
```
@@ -145,11 +183,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
+# [./spec/render/attribute_spec.rb:98](../../../spec/render/attribute_spec.rb#L98)
## Input
```haml
- v = [1, nil, false, true]
%span{id: v}
```
@@ -164,11 +202,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:86](../../../spec/render/attribute_spec.rb#L86)
+# [./spec/render/attribute_spec.rb:98](../../../spec/render/attribute_spec.rb#L98)
## Input
```haml
- h = { id: [1, nil, false, true] }
%span{h}
```
@@ -183,11 +221,11 @@
```html
<span id='1__false_true'></span>
```
-# [./spec/render/attribute_spec.rb:92](../../../spec/render/attribute_spec.rb#L92)
+# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104)
## Input
```haml
%span{class: "x\"y'z"} hello
```
@@ -201,11 +239,11 @@
```html
<span class='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:110](../../../spec/render/attribute_spec.rb#L110)
+# [./spec/render/attribute_spec.rb:122](../../../spec/render/attribute_spec.rb#L122)
## Input (with options={:format=>:xhtml})
```haml
- foo = true
%span{foo: foo, bar: 1} hello
```
@@ -220,11 +258,11 @@
```html
<span bar='1' foo='true'>hello</span>
```
-# [./spec/render/attribute_spec.rb:110](../../../spec/render/attribute_spec.rb#L110)
+# [./spec/render/attribute_spec.rb:122](../../../spec/render/attribute_spec.rb#L122)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true, bar: 1}
%span{h} hello
```
@@ -239,11 +277,11 @@
```html
<span foo bar='1'>hello</span>
```
-# [./spec/render/attribute_spec.rb:117](../../../spec/render/attribute_spec.rb#L117)
+# [./spec/render/attribute_spec.rb:129](../../../spec/render/attribute_spec.rb#L129)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -257,11 +295,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:121](../../../spec/render/attribute_spec.rb#L121)
+# [./spec/render/attribute_spec.rb:133](../../../spec/render/attribute_spec.rb#L133)
## Input
```haml
- attrs = { foo: 1, bar: { hoge: :fuga }, baz: true }
%span{attrs} hello
@@ -283,11 +321,11 @@
```html
<span foo='1' bar-hoge='fuga' baz>hello</span>
```
-# [./spec/render/attribute_spec.rb:135](../../../spec/render/attribute_spec.rb#L135)
+# [./spec/render/attribute_spec.rb:147](../../../spec/render/attribute_spec.rb#L147)
## Input
```haml
- data = { foo: 1 }
%span{foo: {bar: "x#{1}y"}} hello
@@ -303,11 +341,11 @@
```html
<span foo-bar='x1y'>hello</span>
```
-# [./spec/render/attribute_spec.rb:149](../../../spec/render/attribute_spec.rb#L149)
+# [./spec/render/attribute_spec.rb:161](../../../spec/render/attribute_spec.rb#L161)
## Input
```haml
%span{foo: {bar: 1+2}} hello
```
@@ -321,11 +359,11 @@
```html
<span foo-bar='3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:172](../../../spec/render/attribute_spec.rb#L172)
+# [./spec/render/attribute_spec.rb:184](../../../spec/render/attribute_spec.rb#L184)
## Input
```haml
%span{data: {foo: 1, bar: 'baz', :hoge => :fuga, k1: { k2: 'v3' }}} hello
```
@@ -339,11 +377,11 @@
```html
<span data-foo='1' data-bar='baz' data-hoge='fuga' data-k1-k2='v3'>hello</span>
```
-# [./spec/render/attribute_spec.rb:180](../../../spec/render/attribute_spec.rb#L180)
+# [./spec/render/attribute_spec.rb:192](../../../spec/render/attribute_spec.rb#L192)
## Input
```haml
%span{data: {foo: 1, bar: 2+3}} hello
```
@@ -357,11 +395,11 @@
```html
<span data-foo='1' data-bar='5'>hello</span>
```
-# [./spec/render/attribute_spec.rb:184](../../../spec/render/attribute_spec.rb#L184)
+# [./spec/render/attribute_spec.rb:196](../../../spec/render/attribute_spec.rb#L196)
## Input
```haml
- data = { foo: 1, bar: 2 }
%span{data: data} hello
@@ -377,11 +415,11 @@
```html
<span data-foo='1' data-bar='2'>hello</span>
```
-# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202)
+# [./spec/render/attribute_spec.rb:214](../../../spec/render/attribute_spec.rb#L214)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
@@ -397,11 +435,11 @@
```html
<span a='1' b='1'></span>
```
-# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209)
+# [./spec/render/attribute_spec.rb:221](../../../spec/render/attribute_spec.rb#L221)
## Input
```haml
%span{"foo\0bar" => "hello"}
```
@@ -415,11 +453,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209)
+# [./spec/render/attribute_spec.rb:221](../../../spec/render/attribute_spec.rb#L221)
## Input
```haml
- val = "hello"
%span{"foo\0bar" => val}
@@ -435,11 +473,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209)
+# [./spec/render/attribute_spec.rb:221](../../../spec/render/attribute_spec.rb#L221)
## Input
```haml
- key = "foo\0bar"
- val = "hello"
%span{key => val}
@@ -457,11 +495,11 @@
(eval):3: syntax error, unexpected =>
...::Temple::Utils.escape_html((=> val))); _buf << ("'></span>\...
... ^
```
-# [./spec/render/attribute_spec.rb:223](../../../spec/render/attribute_spec.rb#L223)
+# [./spec/render/attribute_spec.rb:235](../../../spec/render/attribute_spec.rb#L235)
## Input
```haml
%span[Faml::TestStruct.new(123)] hello
```
@@ -475,11 +513,11 @@
```html
<span>[Faml::TestStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:227](../../../spec/render/attribute_spec.rb#L227)
+# [./spec/render/attribute_spec.rb:239](../../../spec/render/attribute_spec.rb#L239)
## Input
```haml
%span[Faml::TestStruct.new(123), :hello] hello
```
@@ -493,11 +531,11 @@
```html
<span>[Faml::TestStruct.new(123), :hello] hello</span>
```
-# [./spec/render/attribute_spec.rb:231](../../../spec/render/attribute_spec.rb#L231)
+# [./spec/render/attribute_spec.rb:243](../../../spec/render/attribute_spec.rb#L243)
## Input
```haml
%span[Faml::TestRefStruct.new(123)] hello
```
@@ -511,11 +549,11 @@
```html
<span>[Faml::TestRefStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:235](../../../spec/render/attribute_spec.rb#L235)
+# [./spec/render/attribute_spec.rb:247](../../../spec/render/attribute_spec.rb#L247)
## Input
```haml
%span#baz[Faml::TestStruct.new(123)]{id: "foo"} hello
```
@@ -529,11 +567,11 @@
```html
<span id='baz'>[Faml::TestStruct.new(123)]{id: "foo"} hello</span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
%span{foo: 1}(foo=2)
```
@@ -547,11 +585,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
%span(foo=2){foo: 1}
```
@@ -565,11 +603,11 @@
```html
<span foo='2' foo='1'></span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
- v = 2
%span{foo: v-1}(foo=v)
```
@@ -584,11 +622,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
- v = 2
%span(foo=v){foo: v-1}
```
@@ -603,11 +641,11 @@
```html
<span foo='2' foo='1'></span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
- h = {foo: 1}
%span{h}(foo=2)
```
@@ -622,11 +660,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241)
+# [./spec/render/attribute_spec.rb:253](../../../spec/render/attribute_spec.rb#L253)
## Input
```haml
- h = {foo: 1}
%span(foo=2){h}
```
@@ -641,10 +679,10 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:260](../../../spec/render/attribute_spec.rb#L260)
+# [./spec/render/attribute_spec.rb:272](../../../spec/render/attribute_spec.rb#L272)
## Input
```haml
%span{id: 1}(id=2)
```