https://github.com/vgamula/moduller
Simple modules like in Marionette.js
https://github.com/vgamula/moduller
javascript module-system
Last synced: 3 days ago
JSON representation
Simple modules like in Marionette.js
- Host: GitHub
- URL: https://github.com/vgamula/moduller
- Owner: vgamula
- License: mit
- Created: 2015-11-23T19:42:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T12:52:22.000Z (over 9 years ago)
- Last Synced: 2026-01-23T11:49:30.883Z (6 months ago)
- Topics: javascript, module-system
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Moduller
==
#### Description
**Moduller** is a simple tool to have [Marionette.js-like modules](marionettejs.com/docs/v2.4.3/marionette.module.html) without Marionette.js
#### Installation
`npm install moduller --save-dev`
#### Usage
First of all you have to set up your Main application:
```js
var App = Moduller();
```
Then you can generate your modules like by Marionette:
```js
App.module('Any.Nested.Module.You.Want', function (Want) {
Want.init = function () {
console.log('Hello, World!');
};
});
```
Also you can access your modules like in Marionette:
```js
App.Any.Nested.Module.You.Want.init();
```
##### License
MIT