View Islands#
For normal views, TemplateX emits one shared Svelte runtime module and one island module per interactive view type.
The compiled PHP prints the module entry for that view. The public HTML keeps the authored element where possible and adds only the generated mount marker that the runtime needs.
Block Islands#
For blocks, repeated block instances do not print repeated module scripts.
The block render output keeps only the island mount element, queues the block island module when the block appears, and TemplateX prints the queued module once in the footer.
Editor Preview#
The Gutenberg editor preview loads the same generated block island modules inside the editor canvas after the server-rendered preview HTML arrives.
That keeps frontend interactivity and editor preview behavior using the same generated component.
Published Themes#
The generated PHP and built assets live in the theme output. A published theme should keep rendering without the TemplateX plugin active.