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 | dev.to | 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 | dev.to | 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.

    InfluxDB logo
  • maud

    :pencil: Compile-time HTML templates for Rust

  • Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10

    I would like to mention maud in this context:

    https://github.com/lambda-fairy/maud

    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 | news.ycombinator.com | 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.

    [0]: https://github.com/rosetta-rs/template-benchmarks-rs

    [1]: https://github.com/rust-sailfish/sailfish

    [2]: https://github.com/render-rs/render.rs last updated Jul 2020

    [3]: https://github.com/stoically/syn-rsx last updated Nov 2022

    [4]: https://github.com/fiji-flo/gtmpl-rust

  • 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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • markup.rs

    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 Fries--howto.md. 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 docs.rs.

  • 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).

Rust Template engine related posts

  • Deploying your Rust WASM Game to Web with Shuttle & Axum

    4 projects | dev.to | 14 Feb 2024
  • Getting Started with Actix Web - The Battle-tested Rust Framework

    2 projects | dev.to | 15 Dec 2023
  • Getting Started with Axum - Rust's Most Popular Framework

    5 projects | dev.to | 6 Dec 2023
  • RustGPT: ChatGPT UI Built with Rust, Htmx, SQLite

    4 projects | news.ycombinator.com | 19 Nov 2023
  • Introducing SQLPage : write websites entirely in SQL

    8 projects | /r/rust | 4 Jul 2023
  • Announcing Stilts v0.1 A new template engine like Askama

    2 projects | /r/rust | 4 Jul 2023
  • What is the current ideal choice for server-side rendered web frameworks?

    3 projects | /r/rust | 8 Jun 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 10 May 2024
    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. Learn more →

Index

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

Project Stars
1 tera 3,238
2 askama 3,125
3 maud 1,940
4 handlebars-rust 1,202
5 sailfish 719
6 liquid-rust 432
7 ructe 425
8 markup.rs 332
9 horrorshow-rs 315
10 handlebars-iron 119
11 tp-note 113
12 boilerplate 56
13 marafet 11

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com