summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-27 17:07:25 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-27 17:07:25 +0100
commit0e0a23b79484d98695ffa56fa9f885dffef86d36 (patch)
tree42a6f406b8c2e708f5717c238d94db79bc3dd17c /test
parentd9329295d60a94a02719869f58abdc3da3535190 (diff)
downloadgitbook-0e0a23b79484d98695ffa56fa9f885dffef86d36.zip
gitbook-0e0a23b79484d98695ffa56fa9f885dffef86d36.tar.gz
gitbook-0e0a23b79484d98695ffa56fa9f885dffef86d36.tar.bz2
Add blocks from plugins to template engine
Diffstat (limited to 'test')
-rw-r--r--test/plugins/blocks/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/plugins/blocks/index.js b/test/plugins/blocks/index.js
index 6415ec0..91e8b55 100644
--- a/test/plugins/blocks/index.js
+++ b/test/plugins/blocks/index.js
@@ -1,14 +1,14 @@
module.exports = {
blocks: {
"test": {
- process: function(body, args, kwargs) {
- return "test"+body+"test";
+ process: function(args) {
+ return "test"+args.body+"test";
}
},
"test2": {
end: "endtest2end",
- process: function(body, args, kwargs) {
- return "test2"+body+"test2";
+ process: function(args) {
+ return "test2"+args.body+"test2";
}
}
}