Skip to main content

Crate sofie_engine

Crate sofie_engine 

Source
Expand description

There is no way to emit raw HTML from data.

Structs§

Asset
Served under its content hash, so a browser may cache it until the file changes.
ComponentSpec
Page
PropSpec
ScriptNotices
What engine.js says when a request fails, in the page’s language.
Submitted
Shown again in the form whose post is action, so nothing typed is lost but a password.
Template
TemplateError

Enums§

Children
PropKind
RenderError

Constants§

CLIENT_SCRIPT
htmx, pinned; see assets/PROVENANCE.
ENGINE_SCRIPT
Field state htmx cannot keep, menus and panels, and a notice for an unanswered request.
NOTICE_TARGET
SPECS
Every component, whichever features this build enables.
STYLESHEET

Functions§

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 Form form_id shows an error under, or None when the template has no such form: an error for any other name, or for a post without a form, belongs in the notice.
humanize
is_field_name
load_template
Reads what [compile_template] wrote, so a built app needs no parser.
notice
push_escaped
with_cleared_notice