Closed Papierkorb closed 8 years ago
HAML allows the user to define dashed-nested-attributes like this:
%div{ data: { foo: 123 } }
Which is the same as
%div{ 'data-foo' => 123 }
But more convenient to write IMO :)
This PR adds support for this notation in Template::OutputBuffer#attributes.
Added later on: Also escape HTML attribute values.
Thanks, great addition!
Released as 0.4.1 :wink:
:+1:
HAML allows the user to define dashed-nested-attributes like this:
Which is the same as
But more convenient to write IMO :)
This PR adds support for this notation in Template::OutputBuffer#attributes.
Added later on: Also escape HTML attribute values.