Trait liquid::Renderable
[−]
[src]
pub trait Renderable { fn render(&self, context: &mut Context) -> Result<Option<String>>; }
Any object (tag/block) that can be rendered by liquid must implement this trait.
Required Methods
fn render(&self, context: &mut Context) -> Result<Option<String>>
Renders the Renderable instance given a Liquid context.
The Result that is returned signals if there was an error rendering,
the Option