bart 0.1.7

Compile time templating inspired by Mustache
Documentation
1
2
3
4
5
6
7
8
9
#[derive(bart_derive::BartDisplay)]
#[template = "examples/hello_world.html"]
struct HelloWorld<'a> {
    name: &'a str,
}

fn main() {
    print!("{}", &HelloWorld { name: "World" });
}