Struct liquid::Template [] [src]

pub struct Template {
    pub elements: Vec<Box<Renderable>>,
}

Fields

elements: Vec<Box<Renderable>>

Methods

impl Template
[src]

fn new(elements: Vec<Box<Renderable>>) -> Template

Trait Implementations

impl Renderable for Template
[src]

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

Renders the Renderable instance given a Liquid context. The Result that is returned signals if there was an error rendering, the Option that is wrapped by the Result will be None if the render has run successfully but there is no content to render. Read more