title: Import RSS feed into express
body: <p>I have been searching for hours and really can't find an answer. I figured this stuff out when doing it all on the client side but can't seem to figure this out when I want to load the post on the server and then rendering the view. </p>
  
  <p>What I want to do is on opening the homepage, load an external RSS file and inject the latest 2 posts into the index.jade view. But I can't seem to get it working. This is what I have, and it is reading the posts, but I can't seem to get them in the view. </p>
  
  <p>Any help and guidance is appreciated. Thanks!</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  var parser = require('rss-parser');
  
  /* GET home page. */
  router.get('/', function(req, res, next) {
  
      // GET POSTS from examplewebsite.com
      parser.parseURL('https://examplewebsite.com/rss/', function(err, parsed) {
          var posts = [];
          for (var i = 0; i &lt; 2; i++) {
              posts[i] = parsed.feed.entries[i];
          }
  
          console.log(posts[1].title);
  
      });
  
      res.render('index', { title: 'Example Website'});
  });
  </code></pre>