https://github.com/jdevlieghere/backbone.marionette-amd-modules
Backbone.Marionette Example with AMD Modules (RequireJS)
https://github.com/jdevlieghere/backbone.marionette-amd-modules
Last synced: over 1 year ago
JSON representation
Backbone.Marionette Example with AMD Modules (RequireJS)
- Host: GitHub
- URL: https://github.com/jdevlieghere/backbone.marionette-amd-modules
- Owner: JDevlieghere
- License: mit
- Created: 2014-06-27T09:37:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T10:36:32.000Z (about 12 years ago)
- Last Synced: 2025-02-02T02:26:27.234Z (over 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Backbone.Marionette-AMD-Modules
===============================
[Backbone.Marionette](http://marionettejs.com/) Example with AMD Modules ([RequireJS](http://requirejs.org/))
## Modules
The modules `one` and `two` are located in the `module` directory. They each contain an app, router, controller and view. For brevity, the example does not include models or collections. The modules as well as the main router are loaded in `app.js`.
As an example, each module specifies a custom route while the index route is provided by the `AppRouter`.
```
/
/one
/two
```
## Directory & File Structure
```
| .bowerrc
| .gitignore
| bower.json
| LICENSE
| output.txt
| README.md
+---app
| | app.js
| | index.html
| | main.js
| | templates.js
| +---common
| | | AppController.js
| | | AppRouter.js
| | |
| | \---views
| | Footer.js
| | Header.js
| | Index.js
| +---lib
| | tpl.js
| +---modules
| | +---one
| | | OneApp.js
| | | OneController.js
| | | OneRouter.js
| | | OneView.js
| | |
| | \---two
| | TwoApp.js
| | TwoController.js
| | TwoRouter.js
| | TwoView.js
| +---styles
| | main.css
| |
| \---templates
| footer.tmpl
| header.tmpl
| index.tmpl
| one.tmpl
| two.tmpl
```
## License
MIT License (see [LICENSE](https://github.com/JDevlieghere/Backbone.Marionette-AMD-Modules/blob/master/LICENSE))