pub trait Renderable: Send + Sync + Debug {
    // Required method
    fn render_to(
        &self,
        writer: &mut dyn Write,
        runtime: &dyn Runtime
    ) -> Result<()>;

    // Provided method
    fn render(&self, runtime: &dyn Runtime) -> Result<String> { ... }
}
Expand description

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

Required Methods§

source

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

Renders the Renderable instance given a Liquid runtime.

Provided Methods§

source

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

Renders the Renderable instance given a Liquid runtime.

Implementors§