title: Access req and res inside of app.locals
body: <p>Trying to write some helper methods for an express 3.0 app. Here is an example to greet the user:</p>
  
  <pre><code>  app.locals.greet = function(req,res) {
      return "hey there " + req.user.name;
    }
  </code></pre>
  
  <p>However, <code>req</code> and <code>res</code> aren't available inside that function. How would I go about writing helpers that I can use inside my jade templates? Am I doing this wrong? </p>