Expand description
There is no way to emit raw HTML from data.
Modules§
- development
- islands
- Props travel as JSON in a
<script type="application/json">child, which the browser never runs, so they need no nonce and no attribute escaping. - rendering
Macros§
- client_
bundle - The area’s bundle the app’s build script wrote to
OUT_DIR/clients, with its compressed copies when built with them. - island_
bundle - The area’s bundle the app’s build script wrote to
OUT_DIR/islands, with its compressed copies when built with them.
Structs§
- Action
Post - An
<Action>’s target and the input fields itswithposts, where it is written. - Asked
Entitlement - An
entitled("…")gate a template asks, where it is written. - Asset
- Served under its content hash, so a browser may cache it until the file changes.
- Binding
- Lets
sofie checkhold a template against the loader’s type without rendering. - Client
Bundle - Client
Links - Where the shell loads the bundle from: the embedded one, or the one
sofie devrebuilt. - Client
Shell - Client
View - Serialized from the language’s cached view, which is shared rather than copied per request.
- Component
Spec - Components
- A module’s
web/<Name>.html, written in a screen as<Name prop={…} />and inlined where it is written, so rendering pays nothing for it. - Form
Post - A bound path part is written
{}, as in/account/orders/{}/cancel. - Gap
- IdPattern
- KeyUse
- Language
- Page
- Precompressed
- Prop
Spec - Script
Notices - What engine.js says when a request fails, in the page’s language.
- Submitted
- Shown again in the form whose
postisaction, so nothing typed is lost but a password. - Table
Link - A
Table’s row link, where the table is written. - Template
- Template
Error - Translations
Enums§
Constants§
- CLIENT_
SCRIPT - htmx, pinned; see
assets/PROVENANCE. - CURRENCY_
SYMBOLS - Only symbols that name one currency wherever they are read. The currencies written with a symbol rather than their code.
- ENGINE_
SCRIPT - Field state htmx cannot keep, menus and panels, and a notice for an unanswered request.
- NOTICE_
TARGET - SCREEN_
ELEMENT - SPECS
- Every component, whichever features this build enables.
- STYLESHEET
Functions§
- action_
posts_ with - asked_
entitlements - A component’s gates are asked where it is written, so they are the screen’s.
- bindings
- bindings_
with - A component’s paths are bound from where it is written, so they are the screen’s.
- check_
translations - compile_
client - One screen as the source of a component taking
dataandviewprops. - compile_
template - compile_
template_ with - The module components a screen writes are compiled into it.
- compile_
template_ with_ texts - Each
t(…)call keeps its text in the source language oftranslations, so an app built withouti18nwrites it. - field_
errors - A form id or field that is not a plain name is skipped, so request data cannot widen selectors.
- form_
fields - The fields
Formform_idshows an error under, orNonewhen the template has no such form: an error for any other name, or for a post without a form, belongs in the notice. - humanize
- instant_
fields - Where the data a client area is sent holds instants, which its JSON writes as text: the sent
data’s shape with each instant
true, a list standing for all its items,nullwhere none is. Only an instant sent as text is marked, so a withheld one’s name is not sent either. - is_
field_ name - load_
template - Reads what
compile_templatewrote, so a built app needs no parser. - notice
- parse_
template_ with_ recorded - As
Template::parse_with, with eacht(…)given the source-language text the screen’scompiledprogram recorded for its key: a development build rereads a screen this way, and a build withouti18nwrites that text. - plain_
client_ view - What a client area’s screen is given beside its data, for no request.
- push_
escaped - table_
links_ with - translation_
keys - with_
cleared_ notice