https://github.com/roundingwellos/marionette.toolkit.routerapp
Toolkit.App with coupled Backbone.EventRouter
https://github.com/roundingwellos/marionette.toolkit.routerapp
Last synced: about 1 year ago
JSON representation
Toolkit.App with coupled Backbone.EventRouter
- Host: GitHub
- URL: https://github.com/roundingwellos/marionette.toolkit.routerapp
- Owner: RoundingWellOS
- License: mit
- Created: 2015-07-01T17:51:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T19:30:41.000Z (almost 11 years ago)
- Last Synced: 2025-03-12T22:03:08.643Z (over 1 year ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Marionette.Toolkit.RouterApp
[](https://travis-ci.org/RoundingWellOS/marionette.toolkit.routerapp)
[](https://codeclimate.com/github/RoundingWellOS/marionette.toolkit.routerapp)
[](https://codeclimate.com/github/RoundingWellOS/marionette.toolkit.routerapp)
[](https://david-dm.org/RoundingWell/RouterApp)
Coupling [`backbone.eventrouter`](https://github.com/RoundingWellOS/backbone.eventrouter) with a [`marionette.toolkit.app`](https://github.com/RoundingWellOS/marionette.toolkit)
## Example
```js
var RouterApp = Marionette.Toolkit.RouterApp.extend({
eventRoutes:{
'foo:event' : {
action : 'showFoo',
route : 'foo/list'
},
'bar:event': {
action : 'showBar',
route : 'bar/:id'
}
},
childApps: function(){
return {
foo: FooToolkitApp,
bar: BarToolkitApp
};
},
showFoo: function() {
this.startApp('foo');
},
showBar: function(id){
this.startApp('bar', { id : id });
}
});
```