42 releases

0.15.6 Sep 7, 2022
0.15.5 Jan 13, 2022
0.15.4 Nov 21, 2021
0.15.3 Jun 7, 2021
0.5.0 Dec 30, 2019

#27 in #handlebars

Download history 212/week @ 2024-05-16 276/week @ 2024-05-23 241/week @ 2024-05-30 147/week @ 2024-06-06 198/week @ 2024-06-13 159/week @ 2024-06-20 151/week @ 2024-06-27 156/week @ 2024-07-04 120/week @ 2024-07-11 195/week @ 2024-07-18 352/week @ 2024-07-25 174/week @ 2024-08-01 126/week @ 2024-08-08 168/week @ 2024-08-15 212/week @ 2024-08-22 181/week @ 2024-08-29

704 downloads per month
Used in 7 crates (3 directly)

MIT/Apache

230KB
6K SLoC

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:

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

bytes-buf feature can produce SIGILL. More details in https://github.com/botika/v_escape/issues/54.

Yarte is under development.

Is it really fast?

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.

Dependencies

~4–5.5MB
~102K SLoC