Skip to main content

render

Function render 

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

Renders template (without the .html.tera suffix) with context to an HTML string. Errors if no engine was installed or the template fails.