webvariants / emil

MIT License
4 stars 1 forks source link

Added an 'data' option for the button mixin. #18

Closed trusch closed 9 years ago

trusch commented 9 years ago

It takes an js object (for example {foo: 'bar'}) and translates it to data-attributes in the resulting button. For the example the button would have a 'data-foo' property with the value 'bar'