1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00
Files
mywebsite/node_modules/broadway/examples/nodejs/plugins/helloworld.js
2016-01-04 12:25:28 -05:00

24 lines
424 B
JavaScript

var HelloWorld = exports;
//
// `exports.attach` gets called by broadway on `app.use`
//
HelloWorld.attach = function (options) {
this.hello = function (world) {
console.log("Hello "+ world + options.delimiter || ".");
}
};
//
// `exports.init` gets called by broadway on `app.init`.
//
HelloWorld.init = function (done) {
//
// This plugin doesn't require any initialization step.
//
return done();
};