require(ep_pluginname/static/blabla); now works both on client and server

This commit is contained in:
Egil Moeller 2012-02-26 15:34:03 +01:00
parent ac7ad6b519
commit fd5b7c1080
3 changed files with 13 additions and 10 deletions

View file

@ -1,4 +1,4 @@
test = ep_client_require("/plugins/ep_fintest/test.js");
test = require("ep_fintest/static/js/test.js");
console.log("FOOO:", test.foo);
exports.somehook = function (hook_name, args, cb) {