-
Notifications
You must be signed in to change notification settings - Fork 4
/
hooks.js
30 lines (25 loc) · 1.07 KB
/
hooks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
eejs = require("ep_etherpad-lite/node/eejs");
var util = require('util');
var child_process = require('child_process');
var path = require('path');
exports.eejsBlock_editbarMenuLeft = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_sketchspace/templates/sketchSpaceEditbarButtons.ejs", {}, module);
return cb();
}
exports.eejsBlock_modals = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_sketchspace/templates/sketchSpaceModals.ejs", {}, module);
return cb();
}
exports.eejsBlock_scripts = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_sketchspace/templates/sketchSpaceScripts.ejs", {}, module);
return cb();
}
exports.eejsBlock_styles = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_sketchspace/templates/sketchSpaceStyles.ejs", {}, module);
return cb();
}
exports.init = function(hook_name, args, cb) {
child_process.spawn(path.join(__dirname, "build.sh"), [], {customFds: [0, 1, 2]}).on('exit', function (code, signal) {
cb();
});
}