1 unstable release

0.1.0 Jun 4, 2023

#98 in #html-templating

MIT/Apache

7KB
100 lines

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

No runtime deps