chaplinjs/chaplin — pull request #145 by miklschmidt (2012-07-13 14:30:25+00:00)
Title: Add routing support for controllers in subfolders.

Modified the dispatcher to be able to look for controllers in subfolders by prefixing targets with double colons.

This way you will be able to have a folder structure like this:

collections
controllers
lib
models
modules
mymodule
controllers
my_controller.coffee
models
collections

and so forth. To route to your module controllers just prefix your targets with "modulepath::" ex. modules/mymodule::my#action. Test included!

This allows for reusable selfcontained modules that you can reuse in other projects. I hope it will be useful to someone.