marionettejs/backbone.marionette — pull request #378 by dgbeck (2012-12-12 00:51:56+00:00)
Title: added resolve method to application object, for easier fetching of submo...

So disclaimer here is that I am new to this so I'm not what the proper way is to submit experimental code like this. I'm just want to share this so you can take a look a it, in case you like it or want to work something similar into the module system when it gets a revamp in 2.0. If there is a better way to submit stuff like this in the future please let me know.

Exploring further submodule stuff, I was ending up with things that looked like:

```javascript
App.module( "Dialogs.EditCustomFieldDialog", function( ..., baseDialogView )
this.view = baseDialog.extend( {
...
} );
}, App.submodules.Dialogs.submodules.BaseDialog.view );
```

The ugly part being the last line. This pull request adds a "resolve" method to the application object that can resolve module paths, so you can do:

```javascript
App.module( "Dialogs.EditCustomFieldDialog", function( ..., baseDialogView )
this.view = baseDialog.extend( {
...
} );
}, App.resolve( "Dialogs.BaseDialog" ).view );
```

Not sure this is valuable enough for everybody in include in marionette proper, and the implementation could definitely be polished, but just wanted to put this out there.

Enough for today =)!