/// Render a registered template and write some data to the `std::io::Write`
Render a registered template and write some data to the `std::io::Write`
Render a registered template and write some data to the ` std :: io :: Write `
pub fn render_to_write<T, W>(&self, name: &str, data: &T, writer: W) -> Result<(), RenderError>
    where
        T: Serialize,
        W: Write,
    {
        let mut output = WriteOutput::new(writer);
        let ctx = Context::wraps(data)?;
        self.render_to_output(name, &ctx, &mut output)
    }
pub fn render_to_write < T , W > ( & self , name : & str , data : & T , writer : W ) -> Result < ( ) , RenderError > where T : Serialize , W : Write , { let mut output = WriteOutput :: new ( writer ) ; let ctx = Context :: wraps ( data ) ? ; self . render_to_output ( name , & ctx , & mut output ) }
Render a registered template and write some data to the `std::io::Write`
Render a registered template and write some data to the ` std :: io :: Write `
&self
name
&str
data
&T
writer
W