News for hackers. Stuff that matters.
Re:Hapi, new Node.js framework (a prologue) by account_taken on Sunday February 03, 2013 @05:31PM (#5161491)
// Add the route server.addRoute({ method: 'GET', path: '/hello', config: hello });

I'm sorry but how is that different than

    app.get('/hello', require('simplemath'));
where simplemath is

    module.exports = function(req, res) { ... }
Re:Hapi, new Node.js framework (a prologue) by account_taken on Sunday February 03, 2013 @05:34PM (#5161505)
nm. I didn't see the example was returning two properties. Still, that is relatively easy to do. I have a middleware that does that and it's very short not yet another framework.