title: Migrating Express.js 2 to 3, specifically app.dynamicHelpers() to app.locals.use?
body: <p>Updated Express.js from version 2 to 3, and the following call to <code>app.dynamicHelpers({..})</code> broke as it is no longer present in V3:</p>
  
  <pre><code>app.dynamicHelpers({
  
      request: function(req){
        return req
      },
      ...etc.
  });
  </code></pre>
  
  <p>There's a <a href="https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x" rel="nofollow noreferrer">migration guide</a> which says this: </p>
  
  <ul>
  <li><code>app.dynamicHelpers()</code> (use middleware + res.locals)</li>
  </ul>
  
  <p>But I'm stumped how to do that.  Is there a more concrete example of how to migrate that?</p>
  
  <p>Related SO post:  <a href="https://stackoverflow.com/questions/10204055/nodejs-express-3-0">nodejs express 3.0</a> </p>