/// Parses a liquid template, returning a Template object.
/// # Examples
///
/// ## Minimal Template
///
/// ```
/// let template = liquid::ParserBuilder::with_liquid()
///     .build().unwrap()
///     .parse("Liquid!").unwrap();
///
/// let globals = liquid::value::Object::new();
/// let output = template.render(&globals).unwrap();
/// assert_eq!(output, "Liquid!".to_string());
/// ```
///
Parses a liquid template, returning a Template object.
Parses a liquid template returning a Template object .
pub fn parse(&self, text: &str) -> Result<Template> {
        let template = compiler::parse(text, &self.options).map(interpreter::Template::new)?;
        Ok(Template {
            template,
            partials: self.partials.clone(),
        })
    }
pub fn parse ( & self , text : & str ) -> Result < Template > { let template = compiler :: parse ( text , & self . options ) . map ( interpreter :: Template :: new ) ? ; Ok ( Template { template , partials : self . partials . clone ( ) , } ) }
Parses a liquid template, returning a Template object.
Parses a liquid template returning a Template object .
&self
text
&str
examples
None
minimal template
```
let template = liquid::ParserBuilder::with_liquid()
.build().unwrap()
.parse("Liquid!").unwrap().

let globals = liquid::value::Object::new();
let output = template.render(&globals).unwrap();
assert_eq!(output, "Liquid!".to_string());
```
` ` ` let template = liquid :: ParserBuilder :: with_liquid () . build () . unwrap () . parse ( " Liquid! " ) . unwrap () . let globals = liquid :: value :: Object :: new () ; let output = template . render ( &globals ) . unwrap () ; assert_eq! ( output " Liquid! " . to_string () ) ; ` ` `