- docs/examples/shop: types.wo model, per-feature view modules
(render() classes), root controller files, layout shell/header/
footer, static assets controller + real style.css, README with
Angular file map + run + DX referendum notes
- buy flow proven by hand: stock check/decrement, 409s, traversal
404, css typed, WAL-durable; builds on the UNPATCHED toolchain
- two language gaps recorded, not fixed (per directive): pub+@table
cannot combine (controllers forced into root module); @view
projection classes absent
- story 37 REDIRECTED per Vue-SFC review: view.html compiled by woc
({{}} auto-escaped, w:if/w:for, typed against view class, no
runtime engine); render()-as-concatenation failed the referendum;
forks revised; shop named the acceptance consumer
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
8 lines
305 B
Text
8 lines
305 B
Text
-- layout/header.wo — the header fragment (header.html's analog).
|
|
use html
|
|
|
|
pub fn header() -> Text {
|
|
let brand = link("/", "brand", "writeonce shop");
|
|
let nav = link("/", "", "Products") .. link("/orders", "", "Orders");
|
|
return el("header", "site-header", brand .. el("nav", "site-nav", nav));
|
|
}
|