old_contents: var
    express = require('express'),
    app = express(),
    poet = require('../lib/poet')(app);
  
  poet.init().then(function () {
    // initialized
  });
  
  app.set('view engine', 'jade');
  app.set('views', __dirname + '/views');
  app.use(express.static(__dirname + '/public'));
  app.use(app.router);
  
  app.get('/', function (req, res) { res.render('index'); });
  
  app.get('/rss', function (req, res) {
    // Only get the latest posts
    var posts = poet.getPosts(0, 5);
    res.setHeader('Content-Type', 'application/rss+xml');
    res.render('rss', { posts: posts });
  });
  
  app.listen(3000);
  
new_contents: var
    express = require('express'),
    app = express(),
    poet = require('../lib/poet')(app);
  
  poet.init().then(function () {
    // initialized
  });
  
  app.set('view engine', 'jade');
  app.set('views', __dirname + '/views');
  app.use(express.static(__dirname + '/public'));
  app.use(app.router);
  
  app.get('/', function (req, res) { res.render('index'); });
  
  app.get('/rss', function (req, res) {
    // Only get the latest posts
    var posts = poet.helpers.getPosts(0, 5);
    res.setHeader('Content-Type', 'application/rss+xml');
    res.render('rss', { posts: posts });
  });
  
  app.listen(3000);
  
subject: Fix for undefined method.