Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Guillaume Gomez
Guillaume Gomez
@imperio@toot.cat  ·  activity timestamp 6 days ago

Just released the 0.15 version of the Rust askama crate (which handles jinja templates at compile-time).

The full changelog is here: https://github.com/askama-rs/askama/releases/tag/v0.15.0

It comes with a crazy amount of new stuff, like support for templating on enum variants, or the beginning or better compilation errors (in some cases it actually shows you in the template where the bug is!).

We also extended what Rust expressions you can use in the templates and made a lot of performance improvements (to reduce compile-time).

Enjoy!

https://crates.io/crates/askama

#rust #rustlang

GitHub

Release v0.15.0 · askama-rs/askama

(❗ = breaking change) New features ❗ add caller pattern from jinja❗ by @pollend in #422 ❗Add new reject filter❗ by @GuillaumeGomez in #430 ❗Treat caller() as variable with support for aliasing❗ b...
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.40 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct