Rust Template engine

Open-source Rust projects categorized as Template engine

Top 13 Rust Template engine Projects

  • tera

    A template engine for Rust based on Jinja2/Django

    Project mention: Getting Started with Axum - Rust's Most Popular Framework | | 2023-12-06

    You can also use HTML templating with crates like askama, tera and maud! This can be combined with the power of lightweight JavaScript libraries like htmx to speed up time to production. You can read more about this on our other article about using HTMX with Rust which you can find here.. We also collaborated with Stefan Baumgartner on an article for serving HTML with Askama!

  • askama

    Type-safe, compiled Jinja-like templates for Rust

    Project mention: Deploying your Rust WASM Game to Web with Shuttle & Axum | | 2024-02-14

    I have inlined the CSS here, and you can use Rust-based tooling like Lightning CSS to minify and bundle CSS here. You might also want to create a Rust build script to generate the HTML from a template, using the askama crate (works a little like Jinja).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • maud

    :pencil: Compile-time HTML templates for Rust

    Project mention: Templ: A language for writing HTML user interfaces in Go | | 2023-12-10

    I would like to mention maud in this context:

    It is refreshingly different from other Rust templating libraries. It uses a proc-macro that compiles your HTML into Rust code. I also happen to use it in conjunction with HTMX and it works very well for me (at least in small projects).

  • handlebars-rust

    Rust templating with Handlebars

    Project mention: Introducing SQLPage : write websites entirely in SQL | /r/rust | 2023-07-04

    handlebars to create the HTML templates of all the built-in components

  • sailfish

    Simple, small, and extremely fast template engine for Rust

    Project mention: Hyper – A fast and correct HTTP implementation for Rust | | 2023-05-12

    Any recommendations for rust template engines? I'd like something that can easily render labeled fragments of a template instead of requiring me to split a page into a dozen little files. Kinda like inline {{block}} definitions in Go's html/template. Speed is also nice.

    From template-benchmark-rs [0] I found sailfish [1] (fast, but no fragments(?)). render-rs [2] and syn-rsx [3] (2022) both let you write html in rust macros which is cool (maybe that can substitute for fragments?). Then there's gtmpl-rust [4] which is just Go templates reimplemented in rust.



    [2]: last updated Jul 2020

    [3]: last updated Nov 2022


  • liquid-rust

    Liquid templating for Rust

    Project mention: Rewrite it in Rust: Kubernetes | /r/rust | 2023-06-03

    Nice point i'll look into it. Currently i use liquid for templating i through it was a good idea as it can provide function loops and more to generate your file!

  • ructe

    Rust Compiled Templates with static-file handling

    Project mention: Full-Stack-Rust: Which approach in Frontend? | /r/rust | 2023-04-28


  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.


    A blazing fast, type-safe template engine for Rust.

  • horrorshow-rs

    A macro-based html builder for rust

  • handlebars-iron

    Handlebars middleware for Iron web framework

  • tp-note

    Minimalistic note taking: save and edit your clipboard content as a note file (Gitlab mirror)

    Project mention: Tagging note files: `order tag` vs `sort tag` | /r/NoteTaking | 2023-05-15

    I am developer of the note-talking tool Tp-Note. It uses the file system to store notes, with prepended tags, e.g. 20230515-French So far, the Tp-Note documentation refers to the tag 20230515 as "sort-tag" (= Sortierkennzeichen in German). It seems my translation is not right. Is the term order tag more appropriate? There are 2 variants: chronological sort/order tag and sequential sort/order tag. Are you English native? Please comment which term is more accurate. Or, is there a better word?

  • boilerplate

    Statically-checked Rust template engine (by casey)

    Project mention: Boilerplate, a text template engine using Rust syntax, has reached 1.0! | /r/rust | 2023-07-04

    Check out the repo on GitHub and the examples on

  • marafet

    Compiler for Jade-like template language to cito.js-based virtual dom

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-14.

Rust Template engine related posts


What are some of the best open-source Template engine projects in Rust? This list will help you:

Project Stars
1 tera 3,210
2 askama 3,081
3 maud 1,920
4 handlebars-rust 1,202
5 sailfish 702
6 liquid-rust 429
7 ructe 424
8 332
9 horrorshow-rs 315
10 handlebars-iron 119
11 tp-note 113
12 boilerplate 52
13 marafet 11
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives