- docs/examples/wo-html: library dep — esc(), element builders,
Tailwind-style utility sheet as one static string, page() shell;
self-contained responses, no CDN/JS/build step
- docs/examples/site: the language tutorial served by the language —
9 seeded chapters in a @table (hello/values+bitwise/containers/
classes/optionals+traps/tables/actors/deps/serving), server-rendered
via wo-html, seed-if-empty so WAL restarts keep admin edits
- routes: / index, /ch/:slug (styled 404), /health, POST /admin/ch/
:slug (bearer handler-side — mechanism framework's, policy app's;
form-encoded title/body update by assignment, 302 back)
- chapter code samples use the lexer's \$ escape to show ${...}
literally; .. never straddles newlines (accumulator style)
- gate: scripts/site-accept.sh + just site — TWO file:// dep remotes,
11 checks incl. authed-edit-survives-restart; /health polling, no
boot-race sleep
- README: run + nginx sketch for writeonce.de; CODE-LOGIC beside code
- full battery 13/13 (site gate included)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
13 lines
605 B
TOML
13 lines
605 B
TOML
name = "site"
|
|
version = "0.1.0"
|
|
description = "writeonce.de — the language tutorial served by the language: framework + wo-html [deps], @table chapters, server-rendered pages"
|
|
|
|
[runtime]
|
|
wo = ">= 0.1"
|
|
|
|
# Two real dependencies (the gate substitutes file:// remotes built from
|
|
# docs/examples/writeonce-framework and docs/examples/wo-html, so CI never
|
|
# touches the network). The [deps] KEY is the module name `use` imports.
|
|
[deps]
|
|
framework = { git = "https://github.com/shoneyj/writeonce-framework", rev = "v0.1.0" }
|
|
html = { git = "https://github.com/shoneyj/wo-html", rev = "v0.1.0" }
|