Struct handlebars::RenderContext
[−]
[src]
pub struct RenderContext<'a> { pub writer: &'a mut Write, // some fields omitted }
The context of a render call
this context stores information of a render and a writer where generated content is written to.
Fields
writer | the |
Methods
impl<'a> RenderContext<'a>
fn new(w: &'a mut Write) -> RenderContext<'a>
Create a render context from a Write
fn with_writer<'b>(&self, w: &'b mut Write) -> RenderContext<'b>
Create a new RenderContext
with a different Write