title: Partials rendering in Express.js and Mustache
body: <p>I'm trying to load a Mustache partial in express.js, but obviously I'm having a bit of trouble. Is it possible to to take a EJS approach like this where a view partial file is included:</p>
  
  <p><a href="https://stackoverflow.com/questions/5404830/node-js-ejs-including-a-partial">Node.js - EJS - including a partial</a></p>
  
  <p>I have a template file called <strong>index.html</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;My Title&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          {{&gt;header}}
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and <strong>header.mustache</strong></p>
  
  <pre><code>&lt;div class="header"&gt;
      &lt;div style="display: table-cell;padding-left: 10px;padding-top: 8px;vertical-align: middle;"&gt;
          &lt;img src="images/logo.png"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In express.js, my render function is something like this:</p>
  
  <pre><code>app.get('/', function(req, res) {
      res.render('signup.html', {
          partials: {
              header: partial('header.mustache')   //this line is wrong        
          }
      });
  });
  </code></pre>
  
  <p>I'm a newbie at this, but would like to somehow render or read the entire contents of header.mustache to the header object. Is this possible?</p>