Crates.io | tagscript_rs |
lib.rs | tagscript_rs |
version | 0.1.0 |
source | src |
created_at | 2023-06-04 13:45:53.807562 |
updated_at | 2023-06-04 13:45:53.807562 |
description | String interpreter and template parser |
homepage | |
repository | https://github.com/zeyrbot/tagscript_rs |
max_upload_size | |
id | 882191 |
size | 7,234 |
String interpreter in Rust (tagscript port)
cargo add tagscript_rs
or add this to your Cargo.toml
[dependencies]
tagscript_rs = "0.1.0"
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);
}
Not yet lol
👤 Runa