tagscript_rs

Crates.iotagscript_rs
lib.rstagscript_rs
version0.1.0
sourcesrc
created_at2023-06-04 13:45:53.807562
updated_at2023-06-04 13:45:53.807562
descriptionString interpreter and template parser
homepage
repositoryhttps://github.com/zeyrbot/tagscript_rs
max_upload_size
id882191
size7,234
🐙 (simxnet)

documentation

README

tagscript.rs

Version License: MIT Twitter: ruunao

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

Commit count: 1

cargo fmt