title: expressjs: Dynamically load a partial into a template via route
body: <p>Is it possible to load a specific partial and dump it into a template based on a route ?</p>
  
  <p>Say I have the following:</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>// contact us
  app.get(‘/contact-us’, function(req, res){
    res.render(‘contact-us’);
  });
  
  // contact Ben
  app.get(‘/contact-us/ben’, function(req, res){
    // get the partial with Ben’s details and put it in res.render(‘contact-us’);
  });
  
  // contact Tom
  app.get(‘/contact-us/tom’, function(req, res){
    // get the partial with Tom’s details and put it in res.render(‘contact-us’);
  });
  </code></pre>
  
  <p><strong>Templates:</strong></p>
  
  <pre><code>[views]
      |
      [contact-us]
            |- index.jade
            |- ben.jade
            |- tom.jade
  </code></pre>