title: Pass JavaScript object/hash to Handlebars helper?
body: <p>Is it possible to pass a JavaScript object/hash into a Handlebars helper call? I'd like to do something like this:</p>
  
  <pre><code>&lt;label&gt;Label here&lt;/label&gt;
  {{#textField {'id':'text_field_1', 'class':'some-class', size:30} }}{{/textField}}
  &lt;p&gt;Help text here.&lt;/p&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/X9HCF/">Here is a jsFiddle</a>. Currently it produces the following error</p>
  
  <pre><code>Uncaught Error: Parse error on line 3:
  ...bel&gt;  {{#textField {'id':'text_field_1'
  ----------------------^
  Expecting 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'DATA', 'SEP', got 'INVALID' 
  </code></pre>
  
  <p>Alternatively I could probably do this and split on ',', but I am not fond of the syntax:</p>
  
  <pre><code>{{#textField "'id'='text_field_1','class'='some-class',size=30"}}{{/textField}}
  </code></pre>
  
  <p>NOTE: I specifically do NOT want to pass data/attributes (id, class, size, etc.) into the template() method as a JSON object. I want everything in the template.</p>