Add optional Datastar plumbing

This commit is contained in:
root
2026-07-30 19:41:52 +00:00
parent d0efab7db0
commit 36d6207bf2
5 changed files with 82 additions and 0 deletions
+6
View File
@@ -33,3 +33,9 @@ The example uses query-string routing in the same style as the PHP starter, but
Direct requests to `/examples/uce-starter/index.uce` still work, but self-links are canonicalized back to `/examples/uce-starter/`.
The demo account pages use a small file-backed user store under `/tmp/uce-starter-data/` with session-based login state.
## Optional Datastar Assets
This starter vendors Datastar v1.0.2 as `js/datastar.js` for future server-rendered interactive islands. It is not loaded by the default page shell. `lib/datastar.uce` contains small Datastar SSE formatting helpers, and `views/datastar-example.uce` is an unlinked opt-in example route.