Skip to content

vgamula/moduller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple modules like in Marionette.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published