Skip to main content

render_file_template

Function render_file_template 

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

Renders file template.

§Parameters

§Returns

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

§Examples

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