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 →
Top 13 Rust Template engine Projects
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
tp-note
Minimalistic note taking: save and edit your clipboard content as a note file (Gitlab mirror)
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!
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).
Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10I 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 to create the HTML templates of all the built-in components
Project mention: Hyper – A fast and correct HTTP implementation for Rust | news.ycombinator.com | 2023-05-12Any 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
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!
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?
Project mention: Boilerplate, a text template engine using Rust syntax, has reached 1.0! | /r/rust | 2023-07-04Check out the repo on GitHub and the examples on docs.rs.
Rust Template engine related posts
-
Deploying your Rust WASM Game to Web with Shuttle & Axum
-
Getting Started with Actix Web - The Battle-tested Rust Framework
-
Getting Started with Axum - Rust's Most Popular Framework
-
RustGPT: ChatGPT UI Built with Rust, Htmx, SQLite
-
Introducing SQLPage : write websites entirely in SQL
-
Announcing Stilts v0.1 A new template engine like Askama
-
What is the current ideal choice for server-side rendered web frameworks?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 10 May 2024
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