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

Renders the Renderable instance given a Liquid context. The Result that is returned signals if there was an error rendering, the Option that is wrapped by the Result will be None if the render has run successfully but there is no content to render.

Implementors