varj 1.2.0

Ultra-lightweight string templating library. No Dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;
use varj::VarjMap;

fn main() -> Result<(), Box<dyn Error>> {
    let mut map = VarjMap::new();
    map.insert("key", "value");

    let expected = "value";
    let actual = map.render("{{ key }}")?;

    assert_eq!(expected, actual);
    Ok(())
}