moduller
v0.0.4
Published
Simple Marionette.js-like modules
Downloads
2
Readme
Moduller
Description
Moduller is a simple tool to have Marionette.js-like modules without Marionette.js
Installation
npm install moduller --save-dev
Usage
First of all you have to set up your Main application:
var App = Moduller();
Then you can generate your modules like by Marionette:
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:
App.Any.Nested.Module.You.Want.init();
License
MIT