feat(build): generate page-boundary helper

Expose generated ui::page as the canonical page-boundary rendering helper and move the Workout golden path and docs off beginner-visible ui::render calls.

req: public_api/002

req: codegen/002

req: canonical_authoring/006
This commit is contained in:
slhx agent
2026-06-12 07:18:38 +02:00
parent 176259afd6
commit 4a8442c5f9
5 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -627,7 +627,7 @@ pub struct AppShell {
}
pub fn page(runtime_src: &'static str, state: &WorkoutState) -> Html {
ui::render(&AppShell {
ui::page(&AppShell {
runtime_src,
body: render(state),
})
@@ -683,7 +683,7 @@ pub fn view(state: &WorkoutState) -> Workout {
}
pub fn render(state: &WorkoutState) -> Html {
ui::render(&view(state))
ui::page(&view(state))
}
#[derive(Clone, Debug)]