title: Handlebars with Express: different html head for different pages
body: <p>I am using Handlebars in an Express Node.js app. My layout.html file includes a <code>&lt;head&gt;</code> section. How can I make the <code>&lt;head&gt;</code> section different for different pages? (So that I can, for example, reference a JavaScript file in only one page, and vary the <code>&lt;title&gt;</code> for each page.)</p>
  
  <p>layout.html looks like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;script src='/public/ajsfile.js'&gt;&lt;/script&gt;
      &lt;link type='text/css' href="/public/style.css" rel="stylesheet"&gt;
    &lt;/head&gt;
    &lt;body&gt;
      {{{body}}}
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>(I am imagining varying the <code>&lt;head&gt;</code> content with something analogous to <code>{{{body}}}</code> in the above, but with <code>{{{head}}}</code>.)</p>