title: Express.js res.render to render multiple datas sources
body: <p>I'm relatively green with Node.js and Express.js and was wondering if I could have some advice as to why some of my data isn't rendering. My code is as follows:</p>
  
  <pre><code>var mongoose    = require('mongoose'),
  ArticleModel    = mongoose.model('Article');
  
  exports.index = function (req, res){
      ArticleModel.find({}, function (err, articles){
          if(err) throw new Error(err);
      });
      res.render('home/index', {
          title: 'Business, Inc',
          articles: articles
      });
  };
  </code></pre>
  
  <p>If I have the res.render inside ArticleModel.find, it will return data to be passed to my template, however I as I have multiple data sources, I would like my res.render to be more independent if possible. What's the best way that I could build data models to be used throughout my application.</p>
  
  <p>Are there any online learning resources for Node.js and Express.js that go beyond teaching Hello World / Todo apps, and show some real depth into application development?</p>