[][src]Trait liquid_interpreter::Renderable

pub trait Renderable: Send + Sync + Debug {
    fn render_to(
        &self,
        writer: &mut dyn Write,
        context: &mut Context
    ) -> Result<()>; fn render(&self, context: &mut Context) -> Result<String> { ... } }

Any object (tag/block) that can be rendered by liquid must implement this trait.

Required methods

fn render_to(&self, writer: &mut dyn Write, context: &mut Context) -> Result<()>

Renders the Renderable instance given a Liquid context.

Loading content...

Provided methods

fn render(&self, context: &mut Context) -> Result<String>

Renders the Renderable instance given a Liquid context.

Loading content...

Implementors

impl Renderable for Template[src]

Loading content...