Skip to main content

render_template

Function render_template 

Source
pub fn render_template(template: &str, context: &Value) -> Result<String, Error>
Expand description

Renders template over context — the same engine and whitespace rules as render_system, with the caller’s own variables. A value’s own text is inserted verbatim, never re-parsed, so a section’s braces survive; the template name in errors is system.