lyonbros/composer.js — pull request #5 by squidfunk (2012-03-02 11:43:48+00:00)
Title: Added ability to pass objects additionally to handler-names to the router which improves encapsulation

Hey folks,

if you define controllers, you can now do the following:

mycontroller = ...
routes = {
'/myaction': [mycontroller, 'method']
}

Personally I think this is closer to the traditional way of server-side MVC and improves the encapsulation of actions. Hope you like it! Also thanks for integrating History.js into Composer.js, great work!

All the best,
Martin