incompatibilities/spec/render/attribute_spec.md in faml-0.6.1 vs incompatibilities/spec/render/attribute_spec.md in faml-0.6.2

- old
+ new

@@ -41,17 +41,17 @@ ## Input ```haml %span{class: []} ``` -## Faml, Haml +## Faml ```html <span></span> ``` -## Hamlit +## Haml, Hamlit ```html <span class=''></span> ``` @@ -115,17 +115,17 @@ ## Input ```haml %span{id: []} ``` -## Faml, Haml +## Faml ```html <span></span> ``` -## Hamlit +## Haml, Hamlit ```html <span id=''></span> ``` @@ -303,11 +303,11 @@ ```html <span foo-bar='x1y'>hello</span> ``` -# [./spec/render/attribute_spec.rb:142](../../../spec/render/attribute_spec.rb#L142) +# [./spec/render/attribute_spec.rb:149](../../../spec/render/attribute_spec.rb#L149) ## Input ```haml %span{foo: {bar: 1+2}} hello ``` @@ -321,11 +321,11 @@ ```html <span foo-bar='3'>hello</span> ``` -# [./spec/render/attribute_spec.rb:165](../../../spec/render/attribute_spec.rb#L165) +# [./spec/render/attribute_spec.rb:172](../../../spec/render/attribute_spec.rb#L172) ## 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:173](../../../spec/render/attribute_spec.rb#L173) +# [./spec/render/attribute_spec.rb:180](../../../spec/render/attribute_spec.rb#L180) ## 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:177](../../../spec/render/attribute_spec.rb#L177) +# [./spec/render/attribute_spec.rb:184](../../../spec/render/attribute_spec.rb#L184) ## 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:195](../../../spec/render/attribute_spec.rb#L195) +# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202) ## Input ```haml %span{b: __LINE__, a: __LINE__} @@ -397,11 +397,11 @@ ```html <span a='1' b='1'></span> ``` -# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202) +# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209) ## Input ```haml %span{"foo\0bar" => "hello"} ``` @@ -415,11 +415,11 @@ ```html <span foo\0bar='hello'></span> ``` -# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202) +# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209) ## Input ```haml - val = "hello" %span{"foo\0bar" => val} @@ -435,11 +435,11 @@ ```html <span foo\0bar='hello'></span> ``` -# [./spec/render/attribute_spec.rb:202](../../../spec/render/attribute_spec.rb#L202) +# [./spec/render/attribute_spec.rb:209](../../../spec/render/attribute_spec.rb#L209) ## 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:216](../../../spec/render/attribute_spec.rb#L216) +# [./spec/render/attribute_spec.rb:223](../../../spec/render/attribute_spec.rb#L223) ## 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:220](../../../spec/render/attribute_spec.rb#L220) +# [./spec/render/attribute_spec.rb:227](../../../spec/render/attribute_spec.rb#L227) ## 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:224](../../../spec/render/attribute_spec.rb#L224) +# [./spec/render/attribute_spec.rb:231](../../../spec/render/attribute_spec.rb#L231) ## 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:228](../../../spec/render/attribute_spec.rb#L228) +# [./spec/render/attribute_spec.rb:235](../../../spec/render/attribute_spec.rb#L235) ## Input ```haml %span#baz[Faml::TestStruct.new(123)]{id: "foo"} hello ``` @@ -529,11 +529,11 @@ ```html <span id='baz'>[Faml::TestStruct.new(123)]{id: "foo"} hello</span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml %span{foo: 1}(foo=2) ``` @@ -547,11 +547,11 @@ ```html <span foo='1' foo='2'></span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml %span(foo=2){foo: 1} ``` @@ -565,11 +565,11 @@ ```html <span foo='2' foo='1'></span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml - v = 2 %span{foo: v-1}(foo=v) ``` @@ -584,11 +584,11 @@ ```html <span foo='1' foo='2'></span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml - v = 2 %span(foo=v){foo: v-1} ``` @@ -603,11 +603,11 @@ ```html <span foo='2' foo='1'></span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml - h = {foo: 1} %span{h}(foo=2) ``` @@ -622,11 +622,11 @@ ```html <span foo='1' foo='2'></span> ``` -# [./spec/render/attribute_spec.rb:234](../../../spec/render/attribute_spec.rb#L234) +# [./spec/render/attribute_spec.rb:241](../../../spec/render/attribute_spec.rb#L241) ## Input ```haml - h = {foo: 1} %span(foo=2){h} ``` @@ -641,179 +641,23 @@ ```html <span foo='1' foo='2'></span> ``` -# [./spec/render/attribute_spec.rb:245](../../../spec/render/attribute_spec.rb#L245) +# [./spec/render/attribute_spec.rb:260](../../../spec/render/attribute_spec.rb#L260) ## 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 +## Faml, Haml ```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> ```