[][src]Trait liquid_interpreter::Renderable

pub trait Renderable: Send + Sync + Debug {
    fn render_to(
        &self,
        writer: &mut dyn Write,
        runtime: &mut Runtime
    ) -> Result<()>; fn render(&self, runtime: &mut Runtime) -> 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, runtime: &mut Runtime) -> Result<()>

Renders the Renderable instance given a Liquid runtime.

Loading content...

Provided methods

fn render(&self, runtime: &mut Runtime) -> Result<String>

Renders the Renderable instance given a Liquid runtime.

Loading content...

Implementors

impl Renderable for Template[src]

Loading content...