pub fn document(
title: &str,
stylesheets: &[String],
scripts: &[String],
body: Markup,
) -> MarkupExpand description
Render a complete HTML5 page around body using compile-time Markup.
Loads native view transitions (@view-transition { navigation: auto; }), PWA manifest and
theme metadata, Basecoat UI (/_slabs/vendor/basecoat.min.css 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 a non-blocking service-worker
registration script at the end of <body>. Pass app-compiled Tailwind CSS v4 URLs in
stylesheets (such as &ctx.assets.stylesheet_urls()) and ES module URLs in scripts.