plugins.plugins is now defined while loading hook modules from plugins

This commit is contained in:
Egil Moeller 2012-02-26 00:59:05 +01:00
parent 2a58a62dcc
commit 1955bdec9a
2 changed files with 11 additions and 20 deletions

View file

@ -1,3 +1,6 @@
test = ep_client_require("/plugins/pluginomatic_fintest/test.js");
console.log("FOOO:", test.foo);
exports.somehook = function (hook_name, args, cb) {
return cb(["otherpart:somehook was here"]);
}
@ -7,9 +10,6 @@ exports.morehook = function (hook_name, args, cb) {
}
exports.expressServer = function (hook_name, args, cb) {
test = ep_client_require("/plugins/pluginomatic_fintest/test.js");
console.log("FOOO:", test.foo);
args.app.get('/otherpart', function(req, res) {
res.send("<em>Abra cadabra</em>");
});