title: ruby Mustache.render does not have 3rd parameter for partials like JS Mustache.render
body: <p>I have a AJAX that send JSON to client, so it can render a Mustache template on the client side. The Mustache template has a partial. 
  Everything goes fine. I'll borrow the example from <a href="http://coenraets.org/blog/2011/12/tutorial-html-templates-with-mustache-js/" rel="nofollow">here</a></p>
  
  <p>Sample 11: Partials (JS Version of Mustache)</p>
  
  <pre><code>var data = { depts: [
      {   name: "Engineering",
          employees: [
              {firstName: "Christophe", lastName: "Coenraets"},
              {firstName: "John", lastName: "Smith"}]
      },
      {   name: "Sales",
          employees: [
              {firstName: "Paula", lastName: "Taylor"},
              {firstName: "Lisa", lastName: "Jones"}]
      }]
  };
  
  var tpl = "{{#depts}}&lt;h1&gt;{{name}}&lt;/h1&gt;" +
            "&lt;ul&gt;{{#employees}}{{&gt;employee}}{{/employees}}&lt;/ul&gt;{{/depts}}";
  var partials = {employee: "&lt;li&gt;{{firstName}} {{lastName}}&lt;/li&gt;"};
  var html = Mustache.render(tpl, data, partials);
  $('#sampleArea').html(html);
  </code></pre>
  
  <p>As you can see in the call to <code>Mustache.render</code>, there is a 3rd argument that you can pass PARTIALS, works great in JS.</p>
  
  <p>I need to do the exactly same thing in Ruby, but the problem is, <strong>in Ruby Mustache, the 3rd argument doesn't exist</strong>. I've seen the Mustache source and I've debugged it, it has something to do with the "context" of Mustache, but could not figure it out how to pass a PARTIAL like in the JS version of Mustache.</p>
  
  <p>I've tried:</p>
  
  <pre><code>Mustache.render( mytemplate, { data: myjson, partial: mypartial })
  </code></pre>
  
  <p>but it doesn't render myjson</p>