release: WRNexusJS 0.3.5

This commit is contained in:
2026-07-24 12:46:44 +05:30
parent 44ba847210
commit c81dedff17
2114 changed files with 65790 additions and 150559 deletions
+7 -1
View File
@@ -414,7 +414,7 @@ Scaffold: `wrnexus generate page home` (alias `g p`).
`app/layouts/public.wrn`:
```
component Public {
layout Public {
view {
<nav><a href="/">Home</a> · <a href="/about">About</a></nav>
<main><slot></slot></main>
@@ -425,6 +425,12 @@ component Public {
A page opts in with `layout = "public"`. Missing → a `default` layout if present; `layout = "none"`
disables layouts for that page.
`app/layouts/document.wrn` is the optional global outer layout. It wraps the
selected page layout and can define `<html>`, `<head>`, `<body>`, and `#app`.
It receives `cookies`, `theme`, `language`, `url`, and `pathname` during SSR.
Framework metadata, configured head content, styles, and scripts are merged into
the authored document automatically.
## 12. Components & props
`app/components/counter.wrn`: