/stache

A Mustache template compiler.

Primary LanguageRustMIT LicenseMIT

Stache

A Mustache template compiler.

Usage

$ stache -d app/templates/ -o stache.c --emit=ruby
$ stache -d app/templates/ -o stache.c --emit=ruby && clang-format -i -style=webkit stache.c

Development

$ git submodule update --init
$ cargo test
$ cargo build

Benchmark against erubi with:

$ gem install benchmark-ips erubi
$ cargo test bench -- --ignored --nocapture

License

Stache is released under the MIT license. Check the LICENSE file for details.