0.4.0 • Published 9 years ago
plugo v0.4.0
plugo
Dynamically expose modules to hapi plugins from a given path.
Usage
const Plugo = require('plugo');
exports.register = (plugin, options, next) => {
var plugoptions = {
name: 'handlers',
path: __dirname + '/handlers'
};
// Exposes modules in the handlers folder to this plugin
Plugo.expose(plugoptions, plugin, next);
};
exports.register.attributes = {
name: 'controllers'
};
Options
The following options are available: