Skip to main content

render_app_fragment_from_doc

Function render_app_fragment_from_doc 

Source
pub fn render_app_fragment_from_doc(
    app_root: &str,
    fragment_name: &str,
    params_root: &Value,
) -> Option<String>
Expand description

Renders an app-owned fragment from an in-memory parameter document.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::render_app_fragment_from_doc 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::json_commands::render_app_fragment_from_doc.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::render_app_fragment_from_doc(std::path::Path::new("apps/dev_docs"), todo!(), &serde_json::json!({}));