title: Pass global data to views in sails js
body: <p>On my website I have a footer that has my last three blog posts. This is on every page. How can I pass this data to my template without having to pass it in every controller?</p>
  
  <p>For example right now I am doing this in my controller:</p>
  
  <pre><code>  res.view({
      layout: "homeLayout",
      recent: posts
     }); 
  </code></pre>
  
  <p>But I dont want to have to pass recent in every res.view() call. How can I globally declare this data so its available to all views?</p>