tagscript_rs 0.1.0

String interpreter and template parser
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 5 items with examples
  • Size
  • Source code size: 6.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • simxnet

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