title: passing an object to a function with mustache.js
body: <p>Is there a way to pass an object to a function with mustache.js templates?</p>
  
  <p>Something like : </p>
  
  <pre><code>var template = $('#template').html();
  var json = {folder : 'abc', size : '123', date : '1'};
  var output = Mustache.render(template, json);
  
  
  &lt;script type="template/text" id="template"&gt;
      &lt;td&gt;&lt;span class="{{folder}}" onclick="doSomething(json)"&gt;&lt;/span&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I didn't find any way to do that, so I guess it's not possible, and if so, which templating engine can do that?</p>