Client side / server side require

This commit is contained in:
Egil Moeller 2012-02-26 00:45:06 +01:00
parent 261bbd460f
commit 2a58a62dcc
7 changed files with 59 additions and 9 deletions

View file

@ -7,6 +7,9 @@ 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>");
});