Skip to main content

ui_render_fragment

Function ui_render_fragment 

Source
pub fn ui_render_fragment(
    app_root: &str,
    relative: &str,
    params: &Value,
) -> Option<String>
Expand description

Loads and renders one validated app fragment.

§Parameters

§Returns

Returns Some when crate::runtime::ui::ui_render_fragment can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ui::ui_render_fragment.

§Examples

ⓘ
let _result = pharos_native::runtime::ui::ui_render_fragment(std::path::Path::new("apps/dev_docs"), todo!(), todo!());