Expand description
Unified strict-CSP document shell (PageShell) shared across single-repo,
multi-repo root dashboard, minimal auth pages, and v2.0 Kinetic extensions.
Automatically emits <meta name="arks-mount"> and <meta name="arks-csrf">,
renders authenticated session controls natively (eliminating post-render HTML
string replacement), and switches cleanly to fragment responses on HTMX partial requests.
Structs§
- NavTab
- Additional navigation tab (used by
v2.0extensions such asKinetic). - Page
- Typed page descriptor rendered into a full document or HTMX partial.
- Repo
Header View - View-model projection for the repository chrome header (decoupled from legacy
web_ui).
Enums§
- RepoTab
- Standard forge navigation tab identifiers (plus
Customforv2.0tabs likeGraph/Stacks). - Shell
Kind - Top-level layout chrome variant rendered by
respond_page.
Constants§
- STRICT_
WEB_ UI_ CSP - Strict CSP header enforced on every Web UI HTML response (zero inline style/script).
Functions§
- respond_
html - Build an HTML
HttpResponsewith mandatory strict CSP and security headers. - respond_
page - Render
Pageas either an HTMX main-content partial or a full strict-CSP HTML5 document. - respond_
partial - Build an HTML partial fragment
HttpResponsefor HTMX swap targets.