Skip to content

docs(skill): teach <InnerBlocks /> in Blade block templates - #5

Merged
ogorzalka merged 1 commit into
mainfrom
docs/inner-blocks-in-blade
Sep 28, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
docs/inner-blocks-in-blade

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Follows Pollora/framework#350 (merged into develop, first released in the beta after v13.32.0-beta.8).

  • pollora-blocks skill: new section Inner Blocks: <InnerBlocks /> (tag, options, wrapper, one list per block, what is saved, preview behaviour, $isPreview); the generated edit.jsx / save are the runtime window.pollora.blocks — with a note that beta.8 and earlier generate ServerSideRender and () => null; --inner-blocks described; the migration step uses the runtime's save.
  • Core guidelines: the Blocks convention mentions <InnerBlocks />.

The skill used to say to preview with ServerSideRender, which would steer an agent away from the new mechanism.

No release in this PR: to tag with the next framework beta, so projects on beta.8 don't read about a feature they don't have.

The framework (after v13.32.0-beta.8) lets a render.blade.php write
<InnerBlocks />: the inner blocks are edited in place in the editor and
printed in the tag's wrapper on the page. Generated dynamic blocks use the
editor runtime window.pollora.blocks (bladeEdit, save) instead of
ServerSideRender and () => null. The skill said to use ServerSideRender.
@ogorzalka
ogorzalka merged commit 67fa647 into main Sep 28, 2026
4 checks passed
@ogorzalka
ogorzalka deleted the docs/inner-blocks-in-blade branch September 28, 2026 14:15
@ogorzalka ogorzalka mentioned this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant