Skip to main content

render_string

Function render_string 

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

Render a template string with the given context.

ยงErrors

Returns an error when the template fails to parse or render.