テンプレートの例:
%input{ @attributes }
レンダリング例:
@attributes = {:foo => :bar}
render :example_template
Haml を使用した出力例:
<input foo="bar">
Haml-coffe でこれを達成しようとしましJST['example_template']({attributes: {foo: 'bar'}}
たが、期待どおりに動作しないようです。
Haml-coffeeですべての属性を完全に動的に与えるにはどうすればよいですか?