title: express 3.0 how to use app.locals.use and res.locals.use
body: <p>I am on express3.0rc2. How to use <code>app.locals.use</code>(does it still exist) and <code>res.locals.use</code></p>
  
  <p>I saw this <a href="https://github.com/visionmedia/express/issues/1131" rel="noreferrer">https://github.com/visionmedia/express/issues/1131</a> but app.locals.use throws an error. I am assuming that once I put the function in app.locals.use I can use it in the routes.</p>
  
  <p>I was thinking of adding </p>
  
  <pre><code>app.locals.use(myMiddleware(req,res,next){res.locals.uname = 'fresh'; next();})  
  </code></pre>
  
  <p>and then in any route call this middleware</p>
  
  <p>thanks</p>