pub fn render_string( template: &str, context: &TemplateContext, ) -> Result<String>
Render a template string with the given context.
Returns an error when the template fails to parse or render.