mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
feat(core): add helper function to plugin api
This commit is contained in:
@@ -29,7 +29,12 @@ module.exports = function bbob(plugs) {
|
|||||||
tree.match = match;
|
tree.match = match;
|
||||||
|
|
||||||
plugins.forEach((plugin) => {
|
plugins.forEach((plugin) => {
|
||||||
tree = plugin(tree) || tree;
|
tree = plugin(tree, {
|
||||||
|
parse: parseFn,
|
||||||
|
render: renderFn,
|
||||||
|
iterate,
|
||||||
|
match,
|
||||||
|
}) || tree;
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user