Text Placeholder
A flexible text template engine that allows templates with named placeholders within it.
Placeholders are defined by default following the handlebars syntax, but can be overriden with specific boundaries.
Example
use Template;
use HashMap;
let default_template = new;
let mut table = new;
table.insert;
table.insert;
assert_eq!;
// We can also specify our own boundaries:
let custom_template = new_with_placeholder;
assert_eq!;
Roadmap
- Allow named arguments to be resolved through a struct.
- Implement a
fill_in
that returns errors when a named argument cannot be found.
This project is based on the awesome text-template repository.