An open API service indexing awesome lists of open source software.

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

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