Files
WRNexusJS/examples/basic-app/app/layouts/document.wrn
2026-07-31 16:30:13 +05:30

27 lines
598 B
Plaintext

// Global document layout. The framework renders this once around the selected
// page layout and merges SEO metadata, styles, and scripts into <head>/<body>.
// Request cookies, resolved theme, language, URL, and pathname are available
// as SSR props, so document attributes do not need a client-side correction.
layout Document {
props {
cookies = {}
theme = "light"
language = "en"
url = ""
pathname = "/"
}
view {
<html>
<head></head>
<body>
<div
id="app"
>
<slot />
</div>
</body>
</html>
}
}