gotmpl 0.3.0

A Rust reimplementation of Go's text/template library
Documentation
1
2
3
4
5
6
7
use gotmpl::{Template, ToValue};

fn main() {
    let tmpl = Template::new("").parse("Hello, {{.}}!").unwrap();
    let output = tmpl.execute_to_string(&"world".to_value()).unwrap();
    println!("{}", output);
}