getting closer to full port of web app starter
This commit is contained in:
@@ -7,10 +7,18 @@ It keeps the PHP starter around as reference while mirroring the same broad stru
|
||||
- `index.uce` as the front controller
|
||||
- `views/` for routed page content
|
||||
- `components/` for reusable UI building blocks
|
||||
- `themes/`, `js/`, and `img/` for static assets
|
||||
- `themes/`, `js/`, and `img/` for theme templates and static assets
|
||||
|
||||
This port intentionally leans on UCE's component layer rather than treating components as a compatibility shim. The page shell, nav/footer chrome, theme switcher, dashboard blocks, workspace primitives, and marketing sections are all rendered through `component()`.
|
||||
|
||||
Theme rendering is split the same way as the PHP starter:
|
||||
|
||||
- `themes/common/page.blank.uce`
|
||||
- `themes/common/page.json.uce`
|
||||
- `themes/<theme>/page.html.uce`
|
||||
|
||||
Those page templates are the authoritative shell layer, and in the UCE port they are proper `COMPONENT(...)` units rather than standalone page entrypoints. `index.uce` resolves the routed view, captures the `main` fragment, then hands off once into `themes/common/page.*.uce` or `themes/<theme>/page.html.uce`, matching the PHP starter's page-layer flow without an extra shell implementation.
|
||||
|
||||
The example uses query-string routing in the same style as the PHP starter:
|
||||
|
||||
- `index.uce`
|
||||
|
||||
Reference in New Issue
Block a user