string_template
Very simple string template for Rust. Can render named parameters from a HashMap or positional parameters from a slice.
Usage
Add this to your Cargo.toml
:
[]
= "0.2.1"
If you're on Rust 2015, and this to your crate root:
extern crate string_template;
Here's a simple example:
extern crate string_template;
use Template;
use HashMap;