mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix array attribute rendering
This commit is contained in:
parent
ef8cdf9b27
commit
dc7923bb3e
2 changed files with 10 additions and 0 deletions
|
@ -42,6 +42,8 @@ module Hamlit
|
||||||
value = value.join('_')
|
value = value.join('_')
|
||||||
when :class
|
when :class
|
||||||
value = value.join(' ')
|
value = value.join(' ')
|
||||||
|
else
|
||||||
|
value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,14 @@ describe Hamlit::Engine do
|
||||||
<p id='a_b_c'></p>
|
<p id='a_b_c'></p>
|
||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'does not join others' do
|
||||||
|
assert_render(<<-'HAML', <<-HTML)
|
||||||
|
%a{ data: { value: [count: 1] } }
|
||||||
|
HAML
|
||||||
|
<a data-value='[{:count=>1}]'></a>
|
||||||
|
HTML
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'deletable attributes' do
|
describe 'deletable attributes' do
|
||||||
|
|
Loading…
Reference in a new issue