Example template:
%input{ @attributes }
Example rendering:
@attributes = {:foo => :bar}
render :example_template
Example output with haml:
<input foo="bar">
I tried to achieve this with haml-coffe with JST['example_template']({attributes: {foo: 'bar'}}
but it doesn't seem to work like I expected.
How one can give all attributes completely dynamically with haml-coffee?