{{define "brand"}}{{T "rastrillo.ui.shell_home"}}{{end}} {{define "layout"}} {{block "title" .}}{{copy "brand"}}{{end}} {{/* shell.css is the slide between the index and a page on a phone; only the two shells that have an index link it, because the opt-in it holds cannot be scoped from tokens.css. */}} {{/* blocking="render": shell.js types the slide in pagereveal, at the first render, and a plain deferred script can run after it. An engine that ignores the attribute gets an untyped cross-fade. */}} {{iconAssets}} {{/* head is the app's own slot in : a favicon, a meta tag, one more stylesheet. Empty by default, last in the head so an app's own CSS wins over the framework's, and the only block in the shells that is not chrome. */}} {{block "head" .}}{{end}} {{/* Below 800px this shell is two views of every URL, and the page says which. The index page defines the view block as index: the rail is then the whole page, a list of sections at a real URL, and there is no hamburger. Every other page is a content page (the default, so a page that forgets is content with a way back, never a hidden page) and names its way back in the up block, normally the index with the page's own nav link as the fragment, /#nav-invoices, so focus comes back to where the reader was even with scripts off. Two blocks and not one: a template cannot capture a block's output to branch on it, so "an empty up means index" would have to be read by CSS, through :has(), and without :has() the index would render as a content page with a back link to itself and no navigation. An app with its own template called view renames it: the name is generic, and this one is now the shell's. At 800px and up both views are the rail beside the page. */}}
{{T "rastrillo.ui.shell_skip"}} {{/* The back control: first after the skip link, so focus order is what is seen; a link, not a script; its visible word inside its accessible name (WCAG 2.5.3); rel="up" for tools that read it. An app that wants its name on it ("‹ Ledger") edits this line, which is the app's own from the moment it is scaffolded. */}}
{{block "up-label" .}}{{copy "nav.work"}}{{end}}
{{block "region:notice" .}}
{{end}} {{template "content" .}}
{{end}}