Skip to main content

Module ui

Module ui 

Source
Expand description

Exposes the ui runtime module.

ยงExamples

โ“˜
use pharos_native::runtime::ui;

Constantsยง

UI_BUFFER_LIMIT ๐Ÿ”’
UI_IDENTIFIER_LIMIT ๐Ÿ”’

Functionsยง

ADD_UI_PARAM
Performs ADD UI PARAM.
find_fragment_value ๐Ÿ”’
Finds fragment value.
html_escape ๐Ÿ”’
Performs HTML escape.
resolved_value ๐Ÿ”’
Performs resolved value.
ui_append_attr_escaped
Appends HTML-escaped attribute text to a canonical buffer.
ui_append_boolean_attribute
Appends a boolean HTML attribute when enabled.
ui_append_ledger_attribute
Adds a ledger-backed attribute after resolving its value.
ui_append_structured_attributes
Appends a structured attribute group from a declaration.
ui_buffer_append
Appends one complete canonical UI fragment to a bounded buffer.
ui_buffer_append_n
Appends a bounded slice to a canonical UI buffer.
ui_buffer_take
Takes ownership of a canonical UI buffer and leaves it empty.
ui_declaration_attributes
Builds the validated attribute string for one UI declaration.
ui_event_literal_allowed
Rejects event literals that could inject markup or script.
ui_find_element
Finds a canonical UI declaration by identifier.
ui_fragment_path_valid
Validates an app-relative fragment path and rejects traversal or control bytes.
ui_identifier_valid
Validates an identifier used by the canonical UI ledger.
ui_input_type_allowed
Restricts input widgets to the HTML types supported by the declarative contract.
ui_interpolated_string
Interpolates {key} placeholders in a scalar string.
ui_load_ledger
Loads a UI ledger JSON document from an app root.
ui_optional_attribute
Builds one optional escaped HTML attribute.
ui_path
Resolves a validated app-relative UI path while preserving containment.
ui_placeholder_id
Computes a validated placeholder identifier.
ui_render_button_row
Renders a button row from a declaration.
ui_render_choice_options
Renders a choice group as safe option or radio markup.
ui_render_declaration_html
Renders one complete declaration using the canonical UI contract.
ui_render_fragment
Loads and renders one validated app fragment.
ui_render_help
Renders escaped help copy as a fragment.
ui_render_mutable_params
Expands bounded parameter placeholders without executing authored code.
ui_render_options
Renders choice options from a declarative array.
ui_render_page_file
Renders a page template after ledger declarations are resolved.
ui_render_page_params_fragment
Renders a declared fragment with page parameters.
ui_render_param_map
Performs UI render param map.
ui_resolved_bool
Resolves a boolean value through page parameters.
ui_resolved_string
Resolves a string value through page parameters.
ui_resolved_trusted_html
Resolves a trusted HTML value from a declaration or page parameters.
ui_scalar_dup
Duplicates one scalar display value after parameter resolution.
ui_scalar_text
Converts one scalar value to its canonical display text.
ui_shared_asset_fragment
Identifies shared framework fragments.
ui_shared_asset_path
Resolves a shared framework fragment under the app root.
ui_structured_key_allowed
Validates structured data and HTMX attribute keys.
value_text ๐Ÿ”’
Performs value text.