title: Express & Jade, templates adding code to the layout
body: <p>I'm playing around with an Express site with Node.JS</p>
  
  <p>I have a layout file which, let's say, looks like this:</p>
  
  <pre><code>html
      title foo
  body!= body
  </code></pre>
  
  <p>From what I have been able to understand, the output of the template is inserted into a variable called <code>body</code> and that's added to the layout there on the 3rd line. However, if I wanted a template to add, for example, a <code>&lt;meta&gt;</code> tag in the <code>&lt;head&gt;</code> element, how would I do that?</p>
  
  <p>I did see the explanation of extending templates and using blocks, but I'm not sure how that ties it to using layouts. The templates themselves shouldn't be extending the layout, right? Or, does template inheritance remove the need for layouts at all? I would suspect not, but I'm not sure.</p>
  
  <p>Also, since I'm here, how do you specify a different layout to be used, or for no layout to be used at all. Currently, the views are being rendered like this:</p>
  
  <pre><code>res.render('templateName', { myTemplateVars : 'foo' });
  </code></pre>