pub fn render_file_template(
template_file: &Path,
params_root: &Value,
) -> Option<String>Expand description
Renders file template.
§Parameters
template_file: Input consumed bycrate::runtime::json_commands::render_file_template.params_root: Input consumed bycrate::runtime::json_commands::render_file_template.
§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!({}));§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.