use tera::Context;
use tera::Tera;
fn main() {
let tera = Tera::new("templates/*.html").unwrap();
let mut context: Context = Context::new();
context.insert("text", " Hello, World! How are you? ");
let result = tera.render("hello.html", &context).unwrap();
println!("{result}");
}
text: ' Hello, World! How are you? '
reverse: ' ?uoy era woH !dlroW ,olleH '
upper: ' HELLO, WORLD! HOW ARE YOU? '
lower: ' hello, world! how are you? '
capitalize: ' hello, world! how are you? '
wordcount: '5'
length: '28'
slugify: 'hello-world-how-are-you'
title: ' Hello, World! How Are You? '
trim: 'Hello, World! How are you?'
trim_start: 'Hello, World! How are you? '
trim_end: ' Hello, World! How are you?'