title: Batman.js: using jQuery datepicker, chosen and similar jQuery plugins
body: <p>What is the best way to use jQuery plugins like <code>datepicker</code>, <code>chosen</code>, etc in batman.js? I found <code>data-mixin</code> helper, but there is no documentation and examples with about how to use it. Also I found this issue: <a href="https://github.com/Shopify/batman/issues/199" rel="nofollow">https://github.com/Shopify/batman/issues/199</a>, but again I can't get it work, because it also undocumented.</p>
  
  <p>Ideally I want to do something like this:</p>
  
  <pre><code>#helpers/application_helper.js.coffee
  datePicker: (field) -&gt;
    $(field).datepicker()
  
  #some_view.html
  &lt;input data-helper="datePicker" ... &gt;
  </code></pre>