bracket 0.11.0

Fast and correct handlebars-compatible template engine
Documentation
use bracket::{
    parser::{Parser, ParserOptions},
    Result,
};

/// Demonstrates how to get nodes by iterating a parser.
fn main() -> Result<()> {
    let content = include_str!("files/document.md");
    let options = ParserOptions {
        file_name: String::from("document.md"),
        line_offset: 0,
        byte_offset: 0,
    };
    let parser = Parser::new(content, options);
    for node in parser {
        let node = node?;
        println!("{:#?}", node);
    }
    Ok(())
}