Trait handlebars::Renderable
[−]
[src]
pub trait Renderable { fn render(
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<(), RenderError>; fn renders(
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<String, RenderError> { ... } }
Render trait
Required Methods
fn render(
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<(), RenderError>
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<(), RenderError>
render into RenderContext's writer
Provided Methods
fn renders(
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<String, RenderError>
&self,
registry: &Registry,
rc: &mut RenderContext
) -> Result<String, RenderError>
render into string
Implementors
impl Renderable for Template