wurdcms / wurd-node

Wurd CMS client for Node
MIT License
1 stars 1 forks source link

Remove `app` arg from `Block` constructor #5

Closed caub closed 3 years ago

caub commented 3 years ago

I think Block doesn't need to know about app https://github.com/wurdcms/wurd-node/blob/master/src/block.js#L9

@powmedia

powmedia commented 3 years ago

No it's not strictly required for the functionality but I believe it's there so that the app name can be accessed easily from within any block and so that a block has a similar api to the main wurd module; sometimes this is used for when loading the editor widget from a template