options.index can now be a function

options.index = function(req, res) { res.send('template'); }