balderdashy/sails — pull request #1208 by devel-pa (2013-12-15 15:49:35+00:00)
Title: mvc modularity

(also fixed view issue on windows #983)

to activate modularity add in config/locales.js

modules: {
register: [ 'moduleName' ],
path: appPath + '/modules'
}

appPath being process.cwd()

the sample structure is:

module
moduleName
controllers
models
views

controllers and views are accessed as
module/controller/action
module/viewfolder/file

models are accessed as
ModuleModel