Getting started

<div modules="hello-world"></div>
mom.createModule('hello-world')
    .creator(function(domElement) {
        domElement.innerHTML = 'Hello World';
    });
$(function() {
    mom.initModulePage();
});
mom.createModule('hello-world')
    .dependencies(['hello-world-part'])
    .creator(function(domElement, helloWorldPart) {
        domElement.innerHTML = helloWorldPart.sayHello();
    });
mom.createPart('hello-world-part')
    .creator(function() {
        return {
          sayHello: sayHello
        };
        
        ///////////////////////
        
        function sayHello() {
          return 'Hello World';
        }
    });