From e2511fc4611b084ded5e68ef950a6ef802a209cd Mon Sep 17 00:00:00 2001 From: "shoney.arickathil" Date: Mon, 24 Aug 2026 00:23:39 +0200 Subject: [PATCH] fix(shop): views markup-first within today's grammar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - render() bodies: one HTML line per 'h = h ..' statement, single- quoted attributes, ${} holes, esc() on data — el() chains gone - discovered + recorded gap #3: no multi-line expressions or literals (leading/trailing .. and paren grouping all reject at NEWLINE) — exactly the tax story 37's raw literal deletes - 37-target comment blocks dropped (bodies now self-explanatory; the README states the delta); rebuilt + full buy-flow re-smoked (178.0 total, stock 12->10, 409, traversal 404) Co-Authored-By: Claude Fable 5 --- docs/examples/shop/README.md | 29 +++++------ docs/examples/shop/layout/app.wo | 46 +++++++---------- docs/examples/shop/layout/footer.wo | 6 +-- docs/examples/shop/layout/header.wo | 16 ++---- docs/examples/shop/orders/view.wo | 67 +++++++++---------------- docs/examples/shop/product_list/view.wo | 49 ++++++++---------- docs/examples/shop/product_page/view.wo | 43 ++++++---------- 7 files changed, 97 insertions(+), 159 deletions(-) diff --git a/docs/examples/shop/README.md b/docs/examples/shop/README.md index 5b57161..216ae42 100644 --- a/docs/examples/shop/README.md +++ b/docs/examples/shop/README.md @@ -29,7 +29,7 @@ it and restart: the orders are still there (WAL replay). | `product_page/`, `orders/` | one view module per feature + its root controller file | feature folders | | `static_files/controller.wo` | `/assets/*` from disk, traversal-safe, typed | `angular.json` assets | | `assets/style.css` | ONE real stylesheet, sectioned per feature | the `.scss` files | -| the `-- 37 target:` block above each `render()` | STORY 37's TARGET — an in-class raw template literal ({{ }} auto-escaped + type-checked, {!! !!} raw slots) replacing the hand-built body below it | Vue `