render_and_sanitize

Function render_and_sanitize 

Source
pub fn render_and_sanitize<C>(template: &str, context: C) -> Result<String>
where C: Serialize,
Expand description

Renders a one-off template string with a context and sanitizes the output string.

ยงErrors

Will return Err if the render engine encounters any errors.