Handlebars-Sprig
Handlebars-Sprig is a port of the Sprig template functions to the Rust programming language, with support for Rust's Handlebars library.
It does not aim to be 100% compatible with Sprig. Go templates and Go idioms might not feel right in Handlebars and Rust. But Handlebars-Sprig does aim to be close enough that it feels familiar.
Handlebars-Sprig was originally developed for, and is curently used in the Bartholomew Micro-CMS.
Usage
In your rust code, you need to register the handlebars helper functions:
use Handlebars;
use handlebars_sprig;
The above produces the following output:
$ cargo run --example basic
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/examples/basic`
Template produced: 3