title: Rendering layout with ejs
body: <p>I can't render layout with ejs, express:</p>
  
  <pre><code>app.configure(function () {
      app.use(express.static(__dirname + '/public'));
      app.use(express.basicAuth('username', 'password'));
      app.set('views', __dirname + '/views');
      app.set('view engine', 'ejs');
  });
  </code></pre>
  
  <p>layout.ejs is in /views folder. I render /views/home/index.ejs but it is <em>NOT</em> in layout:</p>
  
  <pre><code>res.render('home/index');
  </code></pre>
  
  <p>layout.ejs:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
        &lt;script type="text/javascript" src="/content/scripts/jquery-1.6.2.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="/content/scripts/jquery-ui-1.8.11.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="/content/scripts/jquery.unobtrusive-ajax.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="/content/scripts/jquery.validate.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="/content/scripts/jquery.validate.unobtrusive.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
        &lt;link rel="stylesheet" type="text/css" href="/content/styles/site.css" /&gt;
        &lt;link rel="stylesheet" type="text/css" href="/content/styles/themes/base/jquery.ui.all.css"/&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;%- body %&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>