k0kubun / hamlit

High Performance Haml Implementation
https://rubygems.org/gems/hamlit
Other
981 stars 59 forks source link

Nested attributes only working if 'data' #112

Closed RobWu closed 7 years ago

RobWu commented 7 years ago

Nested attribute does only work for 'data'


%a{ href: "#", class: "close", data: { dismiss: "alert"}, aria: {label: "close"} }

becomes

<a aria='{:label=&gt;&quot;close&quot;}' class='close' data-dismiss='alert' href='#'>

Same here

%button.navbar-toggle.collapsed{ aria: { controls: 'navbar', expanded: 'false' }, data: { target: '#sidebar', toggle: 'collapse' }, type: 'button' }

becomes

<button aria='{:controls=&gt;&quot;navbar&quot;, :expanded=&gt;&quot;false&quot;}' class='navbar-toggle collapsed' data-target='#sidebar' data-toggle='collapse' type='button'>
RobWu commented 7 years ago

Duplicate of #57