Hacker GitHub

← All repos

Keats/tera

View on GitHub ↗ ★ 4,340 Rust

A template engine for Rust based on Jinja2/Django

11 mentions on Hacker News by 6 people: 1 story, 10 comments · first 2016-04-15 · latest 2025-09-08

Mentions per year 11 mentions · busiest year 2016 (3)
20082026
  1. …de-facto standard like jinja2 which already has a lean, performant subset implementation at https://github.com/Keats/tera . Document/template inclusion model should be OK now in modern era thanks to HTTP/3. Not really sure how that should…
  2. …nice if there were drop-in support for Tera, the Rust template engine that is inspired by Jinja2: https://github.com/Keats/tera
  3. ▲ 1
    Tera – a template engine for Rust based on Jinja2/Django
    story by andrewstetsenko · 2021-07-14 · 0 comments
  4. …engine (imagine my sadness recently when I realised what Helm Charts are using...) - Tera ( https://github.com/keats/tera ): a template engine pretty close to Jinja2/Django templates - at the time it was made only Handlebars existed in…
  5. …better for peopl In short, I just write my content in markdown, style in Sass and HTML in Tera ( https://github.com/Keats/tera/ ) which is very similar to Jinja2. I then automatically build & deploy from https://www.netlify.com/ on…
  6. …and live-reloading in a single binary. I just write Markdown and generate posts with Tera ( https://github.com/Keats/tera ) templates for my HTML, so if I ever wanted to migrate to something else it would be trivial, but I'm a happy camper…
  7. …I don't see compiling them as a big downside, either. What problems do you see with that? Tera ( https://github.com/Keats/tera ) exists already if that's more your cup of tea.
  8. To be honest, there have been multiple takes on Jinja in Rust already; I think Tera ( https://github.com/Keats/tera ) is the most used. However, Tera didn't quite feel Rusty to me, so I wanted to try another approach.
  9. …( https://github.com/Keats ) is in Rust with things like porting Jinja2/Django templates in Rust ( https://github.com/Keats/tera ). I can build a MVP or help out a team. I also run a small consultancy so if the project is big, we can have…
  10. …better way to do template tags but not sure how to do that in Rust. If anyone has an idea, there's https://github.com/Keats/tera/issues/23 now Good point about macros, maybe I can have a look later. Macros and include feel like they fill…
  11. …{{count|add:1}} feels really wrong to me. Maybe having only simple math would be better? Opened https://github.com/Keats/tera/issues/22 if people want to write some input