Skip to main content

render_app_fragment

Function render_app_fragment 

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

Renders an app-owned JSON template fragment.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::render_app_fragment can produce a value and None otherwise.

§Examples

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