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);

@@ -431,16 +431,24 @@
  = poet.
+helpers.
 getPosts

Fix for undefined method.