title: Node.js express: confuse about ejs template
body: <p>I put my <code>ejs</code> template file in <code>views</code> folder like:</p>
  
  <pre><code>views
  |
  |--foo.html
  |
  |--layout.html
  </code></pre>
  
  <p>so I config my ejs template:</p>
  
  <pre><code>app.set('views', __dirname + '/views');
  app.engine('html', require('ejs').renderFile);  
  </code></pre>
  
  <p>I render my <code>foo</code> template by this:</p>
  
  <pre><code>res.render('foo.html', {title: 'test'});
  </code></pre>
  
  <p>I want use <code>layout.html</code> as the master layout template, I also add <code>&lt;%- body%&gt;</code> tag in <code>layout.html</code>, but is doesn't work, what I saw is only return the ended <code>foo.html</code>.</p>
  
  <p>Why the <code>layout.html</code> can't be the master layout?Or how can I set it to the master layout?</p>