Skip to main content

template_render_path

Function template_render_path 

Source
pub fn template_render_path(
    template_path: &str,
    params_root: &Value,
) -> Option<String>
Expand description

Performs template render path.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::template_render_path("template.html", &serde_json::json!({}));