2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

feat(core): add helper function to plugin api

This commit is contained in:
Nikolay Kostyurin
2018-08-06 02:07:48 +02:00
parent daecfa1c80
commit e189a39f11
+6 -1
View File
@@ -29,7 +29,12 @@ module.exports = function bbob(plugs) {
tree.match = match;
plugins.forEach((plugin) => {
tree = plugin(tree) || tree;
tree = plugin(tree, {
parse: parseFn,
render: renderFn,
iterate,
match,
}) || tree;
});
return {