Enum stache::Statement
[−]
[src]
pub enum Statement { Program(Block), Section(Path, Block), Inverted(Path, Block), Variable(Path), Html(Path), Partial(String), Content(String), Comment(String), }
Variants
Program(Block)
Section(Path, Block)
Inverted(Path, Block)
Variable(Path)
Html(Path)
Partial(String)
Content(String)
Comment(String)
Methods
impl Statement
[src]
fn parse(template: &str) -> Result<Statement, ParseError>
Parses the Mustache text into a Statement AST.
fn partials<'a>(&'a self) -> Vec<&'a String>
Visits each node in the tree collecting the names of partials referenced by the template.