title: How to set a variable for the main handlebars layout without passing it to every route?
body: <p>I'm using handlebars with nodejs and express. This is my main.handlebars file:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          ...
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class ="container"&gt;
              ...
              &lt;footer&gt;
                  &amp;copy; {{copyrightYear}} Meadowlark Travel
              &lt;/footer&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So far I'm passing the copyright year to every route:</p>
  
  <pre><code>var date = new Date();
  var copyrightYear = date.getFullYear();
  
  app.get(
      '/',
      function( req, res) {
          res.render(
              'home',
              {
                  copyrightYear: copyrightYear
              }
          );
      }
  );
  </code></pre>
  
  <p>Is it possible to set the <code>copyrightYear</code> variable globally, so I don't have to pass it on to every route/view? </p>