incompatibilities/spec/render/attribute_spec.md in faml-0.6.4 vs incompatibilities/spec/render/attribute_spec.md in faml-0.6.5
- old
+ new
@@ -1,8 +1,48 @@
# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
## Input
```haml
+- h1 = { foo: 'should be overwritten' }
+- h2 = { foo: nil }
+%a{h1, h2}
+
+```
+
+## Faml, Haml
+```html
+<a></a>
+
+```
+
+## Hamlit
+```html
+<a foo='should be overwritten'></a>
+
+```
+
+# [./spec/render/attribute_spec.rb:52](../../../spec/render/attribute_spec.rb#L52)
+## Input
+```haml
+- h = {foo: 1, 'foo' => 2}
+%span{h}
+```
+
+## Faml, Haml
+```html
+<span foo='2'></span>
+
+```
+
+## Hamlit
+```html
+<span foo='1' foo='2'></span>
+
+```
+
+# [./spec/render/attribute_spec.rb:58](../../../spec/render/attribute_spec.rb#L58)
+## Input
+```haml
%span{foo: "x\"y'z"}hello
```
## Faml, Hamlit
```html
@@ -14,11 +54,11 @@
```html
<span foo='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
+# [./spec/render/attribute_spec.rb:58](../../../spec/render/attribute_spec.rb#L58)
## Input
```haml
- v = "x\"y'z"
%span{foo: v}hello
```
@@ -33,11 +73,11 @@
```html
<span foo='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:44](../../../spec/render/attribute_spec.rb#L44)
+# [./spec/render/attribute_spec.rb:58](../../../spec/render/attribute_spec.rb#L58)
## Input
```haml
- h = {foo: "x\"y'z"}
%span{h}hello
```
@@ -52,11 +92,11 @@
```html
<span foo='x"y'z'>hello</span>
```
-# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
+# [./spec/render/attribute_spec.rb:75](../../../spec/render/attribute_spec.rb#L75)
## Input (with options={:format=>:xhtml})
```haml
- v = true
%span{foo: v}hello
```
@@ -71,11 +111,11 @@
```html
<span foo='true'>hello</span>
```
-# [./spec/render/attribute_spec.rb:61](../../../spec/render/attribute_spec.rb#L61)
+# [./spec/render/attribute_spec.rb:75](../../../spec/render/attribute_spec.rb#L75)
## Input (with options={:format=>:xhtml})
```haml
- h = {foo: true}
%span{h}hello
```
@@ -90,11 +130,11 @@
```html
<span foo>hello</span>
```
-# [./spec/render/attribute_spec.rb:75](../../../spec/render/attribute_spec.rb#L75)
+# [./spec/render/attribute_spec.rb:89](../../../spec/render/attribute_spec.rb#L89)
## Input
```haml
%span{b: __LINE__,
a: __LINE__}
@@ -110,11 +150,11 @@
```html
<span a='1' b='1'></span>
```
-# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
+# [./spec/render/attribute_spec.rb:96](../../../spec/render/attribute_spec.rb#L96)
## Input
```haml
%span{"foo\0bar" => "hello"}
```
@@ -128,11 +168,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
+# [./spec/render/attribute_spec.rb:96](../../../spec/render/attribute_spec.rb#L96)
## Input
```haml
- val = "hello"
%span{"foo\0bar" => val}
@@ -148,11 +188,11 @@
```html
<span foo\0bar='hello'></span>
```
-# [./spec/render/attribute_spec.rb:82](../../../spec/render/attribute_spec.rb#L82)
+# [./spec/render/attribute_spec.rb:96](../../../spec/render/attribute_spec.rb#L96)
## Input
```haml
- key = "foo\0bar"
- val = "hello"
%span{key => val}
@@ -170,11 +210,11 @@
(eval):3: syntax error, unexpected =>
...::Temple::Utils.escape_html((=> val))); _buf << ("'></span>\...
... ^
```
-# [./spec/render/attribute_spec.rb:96](../../../spec/render/attribute_spec.rb#L96)
+# [./spec/render/attribute_spec.rb:110](../../../spec/render/attribute_spec.rb#L110)
## Input
```haml
%span[Faml::TestStruct.new(123)] hello
```
@@ -188,11 +228,11 @@
```html
<span>[Faml::TestStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:100](../../../spec/render/attribute_spec.rb#L100)
+# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
## Input
```haml
%span[Faml::TestStruct.new(123), :hello] hello
```
@@ -206,11 +246,11 @@
```html
<span>[Faml::TestStruct.new(123), :hello] hello</span>
```
-# [./spec/render/attribute_spec.rb:104](../../../spec/render/attribute_spec.rb#L104)
+# [./spec/render/attribute_spec.rb:118](../../../spec/render/attribute_spec.rb#L118)
## Input
```haml
%span[Faml::TestRefStruct.new(123)] hello
```
@@ -224,11 +264,11 @@
```html
<span>[Faml::TestRefStruct.new(123)] hello</span>
```
-# [./spec/render/attribute_spec.rb:108](../../../spec/render/attribute_spec.rb#L108)
+# [./spec/render/attribute_spec.rb:122](../../../spec/render/attribute_spec.rb#L122)
## Input
```haml
%span#baz[Faml::TestStruct.new(123)]{id: "foo"} hello
```
@@ -242,11 +282,11 @@
```html
<span id='baz'>[Faml::TestStruct.new(123)]{id: "foo"} hello</span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
%span{foo: 1}(foo=2)
```
@@ -260,11 +300,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
%span(foo=2){foo: 1}
```
@@ -278,11 +318,11 @@
```html
<span foo='2' foo='1'></span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
- v = 2
%span{foo: v-1}(foo=v)
```
@@ -297,11 +337,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
- v = 2
%span(foo=v){foo: v-1}
```
@@ -316,11 +356,11 @@
```html
<span foo='2' foo='1'></span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
- h = {foo: 1}
%span{h}(foo=2)
```
@@ -335,11 +375,11 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:114](../../../spec/render/attribute_spec.rb#L114)
+# [./spec/render/attribute_spec.rb:128](../../../spec/render/attribute_spec.rb#L128)
## Input
```haml
- h = {foo: 1}
%span(foo=2){h}
```
@@ -354,10 +394,10 @@
```html
<span foo='1' foo='2'></span>
```
-# [./spec/render/attribute_spec.rb:133](../../../spec/render/attribute_spec.rb#L133)
+# [./spec/render/attribute_spec.rb:147](../../../spec/render/attribute_spec.rb#L147)
## Input
```haml
%span{id: 1}(id=2)
```