title: Passing a controller variable to a view in Express/Node.js
body: <p>1st method</p>
  
  <pre><code>res.render('index',{people:people});
  </code></pre>
  
  <p>2nd method</p>
  
  <pre><code>res.locals.people = people;
  res.render('index');
  </code></pre>
  
  <p>I saw there's 2 ways to pass variable to view, what's the different btw above method?</p>