hoatle / webapp-template

Web application structure template (layout), starting point for backbone + requirejs + twitter bootstrap application compiled by nodejs and running on any web server or phonegap environment :-)
31 stars 9 forks source link

Have convention over configuration for controllers, actions mapping #11

Closed hoatle closed 11 years ago

hoatle commented 12 years ago

Don't need explicit configuration when it matched convention.

For example: /user/display/1 will match: UserController, display action and params as 1.

No need to have configuration on AppRouter.controllers and Controller.actions mapping.

Only when there is anything different from convention, users should have configuration then.