Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

crcn/mojo-mediator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mojo-mediator is a plugin that provides a communication layer for different parts of your application. It uses mediocre.js.

entry.js:

var mojo = require("mojojs"),
app      = new mojo.Application();

app.
  use(require("mojo-mediator")).
  use(require("./commands"));

app.mediator.execute("initialize", function () {
});

commands/index.js

module.exports = function (app) {
  app.mediator.on("initialize", function (message, next) {
    // do stuff
    next();
  });
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published