lazy-template
Description
This is a string template crate. Instead of requiring a complete set of inputs (such as via a struct
, a HashMap
, or a JSON object) to be available, the templates from this crate would send queries (which would usually be the names of the variables) to a function (called "responder") to get the value of each query.
Documentation
Go to docs.rs.
Basic Usage
This is the most basic usage. There are more in the documentation.
let system = simple_curly_braces;
let template = system.lazy_parse;
let output = template
.to_string
.unwrap;
assert_eq!;