What does HackerNews think of tera?

A template engine for Rust based on Jinja2/Django

Language: Rust

#8 in Django
Or Flask!

My guess is that "fastest" refers to the request-response loop.

I'd be interested in knowing how fast it is once you tack your favourite template rendering engine on top.

It would be nice if there were drop-in support for Tera, the Rust template engine that is inspired by Jinja2:

https://github.com/Keats/tera

I wrote my own as I wanted sass + syntax highlighting + a good template engine without having to install Node or similar (https://www.getgutenberg.io/). Not a lot of themes yet so it's 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 commits. Netlify will also get built-in support the next time they deploy their build image (ie all you need for your site to be deployed will be a file like https://github.com/Keats/gutenberg/blob/a2b55a927981727ce00a...) like Hugo does.

My own site is a bit difference as I have a DO instance for it but the script is simply copying the public folder to the server and have Caddy serve it.

I use Gutenberg (https://www.getgutenberg.io/) which provides built-in Sass compilation 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 now.

When I'm ready to publish I just copy the public directory right to my webserver, but I could just as easily publish to GitHub or the like if I didn't enjoy maintaining my own domain.

My main reason was type safety; getting early feedback from the compiler is really valuable to me.

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.

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.
SEEKING WORK - Osaka / Remote - No relocation

Senior full stack dev used to working remotely for startups. Looking for contracts to fund my own product.

My strengths are:

- Python (Flask/Django)

- Javascript (React/Angular), I mostly use TypeScript currently though

- Go

- UX

Most of my current open source work (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 more hands if needed!

My email is prouillet.vincent at gmail.com and some writing at https://blog.wearewizards.io/ (look for articles written by Vincent).