export function script_get (path, cb){ var filename = path_toLocalFile(path); try { var x = require(filename); cb(null, x); } catch (error) { cb(error); } };
export function xhr_get(path, cb) { //@TODO Implement remote http getter var filename = path_toLocalFile(path); fs.readFile(filename, 'utf8', function(error, str) { if (error != null) { cb({ message: error.toString(), status: error.code }); return; } cb(null, str); }); }