Trait liquid::Renderable
[−]
[src]
pub trait Renderable: Send + Sync { fn render(&self, context: &mut Context) -> Result<Option<String>, Error>; }
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>, Error>
Renders the Renderable instance given a Liquid context.
The Result that is returned signals if there was an error rendering,
the Option