![Latest Version] ![Documentation] ![License]
A minimal templating engine that renders a string from the template, replacing all instances of {placeholder}
with given values.
The engine is strict:
template_default
to use default value for placeholders),template_strict
),Values are provided as an iterable object that provides placeholder name and value pairs.
```rust use nanotemplate::template;
asserteq!( template("Hello, my name is {name}!", &[("name", "nanotemplate")]).unwrap(), "Hello, my name is nanotemplate!".toowned()); ```
Also comes with simple CLI utility:
echo "Hello my name is {name}" | nanotemplate name=nanotemplate