Simple text template engine for rust
This library implements text templates with named placeholder elements like
Hello ${title }${name}
. The space after title is significant in the sense that
it is only included in the output if title is not empty. This is to prevent
two consecutive whitespaces for example if a person has no title.
Please see https://docs.rs/crate/text-template for API documentation.
Example
use *;
use HashMap;
let template = from;
let mut values = new;
values.insert;
let text = template.fill_in;
assert_eq!;
assert_eq!;