Struct handlebars::RenderContext
[−]
[src]
pub struct RenderContext<'a> { pub writer: &'a mut Write, pub current_template: Option<String>, pub root_template: Option<String>, pub disable_escape: bool, // 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: &'a mut Write
the Write
where page is generated
current_template: Option<String>
current template name
root_template: Option<String>
root template name
disable_escape: bool
Methods
impl<'a> RenderContext<'a>
[src]
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