Publishing and rendering
Drafts and revisions
Every edit writes to a page's draft. Publishing resolves every section's settings (defaults merged with overrides, blocks included) and snapshots them as a new, immutable revision, so a later change to a section's defaults never alters what's published. Publishing is blocked while the page breaks its Page Definition.
Restoring a revision replaces the draft, and publishes when the content still satisfies the page's current definition, labelled Restored from revision #N.
The preview view
The editor's preview renders the draft through a view of yours, so it looks like the live site:
Inlay::previewView('inlay.pages.show');
It receives the same $page, $composition and $context as the public view. Without one, the editor shows a plain placeholder wrapper.
Embedded rendering
Render a page's latest published revision from a route you own, with <x-inlay::render> or Inlay::renderPage():
<x-app-layout>
<x-inlay::render :page="$page" :context="['collection' => $collection]" />
</x-app-layout>
Inlay::renderPage($page, context: ['collection' => $collection]);
Use this when a page needs data your route already has - the current tenant, a resolved model. $context is merged underneath each section's resolved settings, so a section that declares a matching property receives it. A page with no published revision renders nothing.
Your styles only
Inlay loads no CSS framework into public pages. The output is exactly what your section and block views render. The admin's CSS and JavaScript are served from its own route and never reach public pages.
Livewire inside sections
A section is rendered through a real Blade component tag, so <livewire:contact-form /> inside it mounts and hydrates normally, in the preview and on a real page.
Failures
A section or block that throws while rendering is skipped and logged as a warning (inlay: skipped a section that failed to render), so one broken section doesn't take the page down.