pub fn document(
title: &str,
stylesheets: &[String],
scripts: &[String],
body: Markup,
) -> MarkupExpand description
Render a complete, CSP-friendly HTML5 page around body using compile-time Markup.
Emits zero inline <style> or inline <script> elements. Loads PWA manifest and theme
metadata, Basecoat UI (/_slabs/vendor/basecoat.min.css, which includes
@view-transition { navigation: auto; }, and /_slabs/vendor/basecoat.min.js), HTMX 2 with
SSE and Idiomorph (hx-ext="morph" on <body>), Alpine.js 3 (/_slabs/vendor/alpine.min.js),
and external service-worker registration (/_slabs/vendor/sw-register.js). Pass app-compiled
Tailwind CSS v4 URLs in stylesheets (such as &ctx.assets.stylesheet_urls()) and ES module
URLs in scripts.