Theme blocks optimisations
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 234
- Forks
- 92
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
1. Not able to not render the theme block element when no blocks are added.
I'd like to check e.g. {{ block.size }} or something like this to be able to ditch the render of the block (e.g. groups) to avoid dom rendering.
2. Not able to limit the amount of blocks that can be added.
Add support for something like "max_blocks" or "limit" to prevent to much blocks.
Checklist
- I have checked and made sure that the proposal adheres to this plugin's principles
Additional context
Theme blocks are super powerful and really pleasant to work with, but it would be even better if is could a bit more flexible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.