

I've considered authentication based on Guards but I've rejected it as Guards don't generate response (like 401) and don't stop handling current request.

I have small toy project with actix-web and diesel on which I'm learning Rust. Thanks to for spending a lot of time on getting this just right.First disclaimer: I'm just learning Rust so I'm no authority in this.
#Actix template how to
Read the documentation for more information on how to define and use custom syntaxes.

#Actix template code
Thanks to Mika Lehtinen and Philipp Korber for contributing code to this release, and to everyone else who submitted feedback for their support in further improving Askama.

Upgrades to nom 4, syn 0.14 and quote 0.6.Renamed lifetime on Rocket integration to prevent conflicts (fixes #88).askama::Error is now Send + Sync + 'static.Matching is more robust thanks to match binding modes (fixes #94).Add support for Index operation ( a see #95).Add support for Range expressions ( a.b see #95).I was happy to see that Askama performance seems more than competitive compared to popular alternatives. The results can be found in this GitHub repository. Fixes some issues with extends paths on Windowsįor this release I finally spent some time collecting benchmarks for template engines.Removes the need for elaborate imports for inheritance across modules.The super() macro can be used to call parent blocks from inside a block.Blocks can now be defined inside other blocks.Supported for multi-layer inheritance has been implemented._parent fields are no longer needed (but still supported for compatibility).The most interesting new feature in this release is an overhauled inheritance model: Note that this release relies on Rust features first released in 1.26.0. Among other things, this is what actix-web uses in their TechEmpower benchmarks. I’m excited to announce a new release of Askama, the type-safe, compiled Jinja-like template engine for Rust.
