1 unstable release
0.1.0 | Jun 4, 2023 |
---|
#2994 in Parser implementations
7KB
100 lines
tagscript.rs
String interpreter in Rust (tagscript port)
Installation
cargo add tagscript_rs
or add this to your Cargo.toml
[dependencies]
tagscript_rs = "0.1.0"
Usage
Simple usage example
fn main() {
let mut parser = TemplateParser::new("Hello, {{name|uppercase}}!");
parser.parse();
let mut data = HashMap::new();
data.insert("name".to_string(), "world".to_string());
let result = parser.render(&data);
println!("{}", result);
}
Documentation
Not yet lol
Author
👤 Runa