Skip to main content

template_render_file

Function template_render_file 

Source
pub fn template_render_file(
    template_file: &Path,
    params_root: &Value,
) -> Option<String>
Expand description

Performs template render file.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::template_render_file(std::path::Path::new("template.html"), &serde_json::json!({}));