Skip to content
/ yarte Public
forked from zzau13/yarte

Yarte stands for Yet Another Rusty Template Engine

License

Notifications You must be signed in to change notification settings

giorgiga/yarte

 
 

Repository files navigation


Yet Another Rust Template Engine

Yarte Latest version Netlify Status

Yarte stands for Yet Another Rusty Template Engine. Uses a Handlebars-like syntax, well-known and intuitive for most developers. Yarte is an optimized, and easy-to-use rust crate, with which developers can create logic around their HTML templates using conditionals, loops, rust code and template composition.



Documentation

In order to fully understand Yarte's capabilities take a look at the following documentation:

Or, in nightly, just:

#[yarte] "{{> my_template }}"

bytes-buf feature can produce SIGILL. More details in zzau13/v_escape#54.

Yarte is under development.

Is it really fast?

Run cargo bench with rust nightly.

Results in my AMD Ryzen 9 5900HX

Teams                   time:   [62.335 ns 62.704 ns 63.138 ns]
Big table               time:   [28.546 µs 28.690 µs 28.873 µs]

See it for yourself in the TechEmpower benchmarks with actix and ntex

Acknowledgment

Yarte is based on all previous templates engines, syntax as well as its documentation is highly influenced by Handlebars. Logo adapted from Creative Commons images

Code of conduct

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4

License

This project is distributed under the terms of both the Apache License (Version 2.0) and the MIT license, specified in LICENSE-APACHE and LICENSE-MIT respectively.

Disclaimer

Spain is not a democracy, with your tourism or your purchases you are subsidizing this barbarism.

All structures and functions in this crate -- even those based on the real crates -- are entirely fictional. All celebrity codes are impersonated...poorly. The following program contains coarse language and due to its content it should not be used by anyone.

exile or hemlock

About

Yarte stands for Yet Another Rusty Template Engine

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 89.8%
  • Handlebars 8.2%
  • HTML 2.0%