/// Render a registered template with reused context
Render a registered template with reused context
Render a registered template with reused context
pub fn render_with_context(&self, name: &str, ctx: &Context) -> Result<String, RenderError> {
        let mut output = StringOutput::new();
        self.render_to_output(name, ctx, &mut output)?;
        output.into_string().map_err(RenderError::from)
    }
pub fn render_with_context ( & self , name : & str , ctx : & Context ) -> Result < String , RenderError > { let mut output = StringOutput :: new ( ) ; self . render_to_output ( name , ctx , & mut output ) ? ; output . into_string ( ) . map_err ( RenderError :: from ) }
Render a registered template with reused context
Render a registered template with reused context
&self
name
&str
ctx
&Context