{{ define "header" }} {{ .name }} {{ template "imports" . }} {{/* Single action apps keep the sidebar as a slide-in drawer on all screen sizes (hamburger opens it for the theme switch); with multiple actions it docks open on md+ for the action nav */}}
{{ end }} {{ define "footer" }}
{{ end }} {{/* Brand fonts (see openrun.css Typography, internal/webstatic). Declared here instead of in the static css so the openrun_static helper emits content-hashed urls, which are served with immutable caching. The above-the-fold faces are preloaded with the SAME hashed urls, so each font downloads once */}} {{ define "fonts" }} {{ end }} {{ block "imports" . }} {{/* The shared assets (htmx, the viewer, the action css and fonts) are embedded in the openrun binary and served for every app at /_openrun/static with content-hashed names (internal/webstatic), so the browser caches one copy across apps. The embedded stylesheet always loads first: it is regenerated with the action templates (stylegen/), so every class the chrome uses is guaranteed present regardless of when the app's own css was generated. The app's generated css loads after it, appending into the same cascade layers, so the app's themes and custom report template styles win ties. See docs/designs/actions-css-layering.md */}} {{ if and (eq .styleType "daisyui") (fileNonEmpty "gen/css/style.css") }} {{ end }} {{ template "fonts" . }} {{/* Long running actions: htmx 4 aborts requests after 60s by default */}} {{/* Server-sent events over fetch: streamed action output (any method) and the dev-mode reload listener */}} {{ if gt (len .esmLibs) 0 }} {{end}} {{ end -}}