From ed5776366c2aaf1d40ff3da2606f63a6fb79e333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Mon, 17 Mar 2025 20:17:53 +0100 Subject: [PATCH] book: mention [`askama_web`] [`askama_web`]: https://crates.io/crates/askama_web/ --- book/src/frameworks.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/book/src/frameworks.md b/book/src/frameworks.md index 3aefecc5..54347bd8 100644 --- a/book/src/frameworks.md +++ b/book/src/frameworks.md @@ -23,6 +23,17 @@ The crates [`thiserror`] and [`displaydoc`] can be useful to implement this erro [`thiserror`]: [`displaydoc`]: +### Simplified alternative + +Alternatively, you can use [`#[derive(askama_web::WebTemplate)]`](https://crates.io/crates/askama_web/) +to automatically implement e.g. actix-web's `Responder`, axum's `IntoResponse` or warp's `Reply`. +The library implements traits for all web-frameworks mentioned down below (and then some), +but it does not stylize error messages. + +If you don't need custom / stylized error messages, +e.g. because you know that your templates won't have rendering errors, then using +[`askama_web`](https://crates.io/crates/askama_web/) might work for you, too. + ## Actix-Web [![our actix-web example web-app](