title: Using Layouts with Express 3.x
body: <p>All of the guides I've found seem to refer to earlier versions of Express and it's my understanding that this functionality has changed somewhat from 2.x to 3.x. I'm assuming that since <code>npm install express</code> currently installs version 3.0.3 that 3.x is considered stable and ready for production use. (Is that not the case?)</p>
  
  <p>I'd like to use EJS or Kiwi templates, and if possible I'd like to have Underscore available from within templates.</p>
  
  <p>But my first hurdle is getting a layout to render around my content/partial.</p>
  
  <p>Given:</p>
  
  <pre><code>$ express --ejs test
  </code></pre>
  
  <p>index.js:</p>
  
  <pre><code>exports.index = function(req, res){
    res.render('index', { title: 'test' });
  };
  </code></pre>
  
  <p>I've created layout.ejs, but I can see when I view source that it's not being called.</p>
  
  <p>Have layouts been completely passed off to the template library to deal with in Express 3.x (thus if the template library of choice doesn't implement them, you're SOL)?</p>
  
  <p>If it's still part of Express, how do I configure it? If it must be implemented by the templating library, I don't see instructions for layouts in either the EJS or Kiwi documentation -- does that mean they're not supported at all?</p>