title: layout.ejs not rendered - Node.js, Express
body: <p>I am trying to execute a simple example of node.js with EJS templates. Node, or rather express is unable to render the index page, as in the following code, with layout.ejs, no matter what I do.</p>
  
  <p>Here's the app.js</p>
  
  <pre><code>var express = require('express')
    , routes = require('./routes')
    , http = require('http');
  
  var app = express();
  
  app.configure(function(){
    app.set('port', process.env.PORT || 8001);
    app.set('views', __dirname + '/views');
    app.set('view engine', 'ejs');
    app.set('view options', {layout: 'views/layout.ejs'});
    app.use(express.favicon());
    app.use(express.logger('dev'));
    app.use(express.bodyParser());
    app.use(express.methodOverride());
    app.use(app.router);
    app.use(express.static(__dirname + '/public'));
  });
  
  app.configure('development', function(){
    app.use(express.errorHandler());
  });
  
  app.get('/', routes.index);
  
  
  http.createServer(app).listen(app.get('port'), function(){
    console.log("Express server listening on port " + app.get('port'));
  });
  </code></pre>
  
  <p>layout.ejs</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
   &lt;head&gt; &lt;title&gt;&lt;%= title %&gt;&lt;/title&gt; &lt;/head&gt;
  
   &lt;body&gt; &lt;%- body %&gt; &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>And in index.ejs, it's just this</p>
  
  <pre><code>&lt;p&gt; Some Text &lt;/p&gt;
  </code></pre>
  
  <p>Have I missed something here?</p>