/// Render a template string using current registry without registering it
Render a template string using current registry without registering it
Render a template string using current registry without registering it
pub fn render_template<T>(&self, template_string: &str, data: &T) -> Result<String, RenderError>
    where
        T: Serialize,
    {
        let mut writer = StringWriter::new();
        self.render_template_to_write(template_string, data, &mut writer)?;
        Ok(writer.into_string())
    }
pub fn render_template < T > ( & self , template_string : & str , data : & T ) -> Result < String , RenderError > where T : Serialize , { let mut writer = StringWriter :: new ( ) ; self . render_template_to_write ( template_string , data , & mut writer ) ? ; Ok ( writer . into_string ( ) ) }
Render a template string using current registry without registering it
Render a template string using current registry without registering it
&self
template_string
&str
data
&T