Template engines

10 projects

Rust template engines split into compile-time and runtime designs. Askama compiles Jinja-like templates into Rust code during the build, so template errors and missing fields are caught by the compiler and rendering is fast. Maud skips template files and writes HTML with a macro inside Rust source. ructe and Yarte also compile templates ahead of time. The trade-off is that changing a template requires a rebuild.

Runtime engines load templates when the program runs, which suits user-editable templates and hot reloading. Tera has Jinja2 and Django-like syntax and is used by the Zola static site generator. MiniJinja, by the author of Jinja2, implements a close match of Jinja2 behaviour with few dependencies, which also makes it a good fit for rendering prompts or config files. handlebars-rust implements Handlebars.

As a rule, choose Askama or Maud for server-rendered pages in a web app where type safety matters, and MiniJinja or Tera when templates come from users, themes or files that change without recompiling. The main engines escape HTML by default in their HTML modes, so check how each one marks trusted content as safe before inserting raw markup. Speed rarely decides the choice, since all of them are fast enough for typical pages.

handlebars-rustby sunng87Handlebars

Handlebars template engine with inheritance, custom helper support.

handlebars6.4.415.4m/90d updated 2d ago

1.5k

yarteby zzau13Handlebars

Yarte stands for Yet Another Rust Template Engine, is the fastest template engine.

updated 3mo ago

284

askamaby askama-rsHTML

Template rendering engine based on Jinja

askama0.16.114.8m/90d updated today

1.2k

ructeby kajHTML

HTML template system

ructe0.18.26.1k/90d updated 4mo ago

456

teraby KeatsHTML

Template engine based on Jinja2 and the Django template language.

tera2.4.06.7m/90d updated 7d ago

4.3k

maudby lambda-fairyHTML

Compile-time HTML templates

maud0.27.02.7m/90d updated 4mo ago

2.6k

minijinjaby mitsuhikoHTML

Minimal dependency template engine based on Jinja2.

minijinja3.0.113.1m/90d updated 2d ago

2.8k

rshtmlHTML

RsHtml: Compile-time, type-safe, lightweight template engine that embeds Rust in HTML and HTML in Rust.

rshtml0.7.0962/90d updated today

41

horrorshow-rsby StebalienHTML

Compile-time HTML templates

horrorshow0.8.941.3k/90d updated 4mo ago

351

rustacheMustache

A Rust implementation of the Mustache spec

rustache0.1.0882/90d updated 7y ago

214

Built on the open rust-unofficial/awesome-rust list by its contributors, licensed CC0 1.0. Crate Atlas is an independent project, not affiliated with the list's maintainers.

About Synced Oct 21, 2026

© 2026 Crate Atlas

Esc

Type to search every entry. ↑↓ to move, Enter to open.