release: WRNexusJS 0.3.5
This commit is contained in:
+7
-1
@@ -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`:
|
||||
|
||||
Reference in New Issue
Block a user