[][src]Trait liquid::interpreter::Renderable

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

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<(), Error>

Renders the Renderable instance given a Liquid context.

Loading content...

Provided methods

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

Renders the Renderable instance given a Liquid context.

Loading content...

Implementors

impl Renderable for FilterChain
[src]

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

impl Renderable for Template
[src]

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

Loading content...