title: how to get locals in Express from routes
body: <p>I have a variable defined as local on my app.js file like this (app is really express) :</p>
  
  <pre><code>app.locals.weather = { /* unimportant content here */ };
  </code></pre>
  
  <p>Now, I want to access that information from my index.js route to print on a ejs template. I'm trying this, but it says it is undefined:</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  
  console.log(express.locals);
  </code></pre>
  
  <p>What is the right way to do that?</p>