Trait liquid_interpreter::Renderable
source · 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> { ... }
}
Expand description
Any object (tag/block) that can be rendered by liquid must implement this trait.