mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 13:30:59 +00:00
Merge pull request #369 from Kijewski/pr-askama_web
book: mention `askama_web`
This commit is contained in:
commit
6bb4b6ecc5
@ -23,6 +23,17 @@ The crates [`thiserror`] and [`displaydoc`] can be useful to implement this erro
|
||||
[`thiserror`]: <https://crates.io/crates/thiserror>
|
||||
[`displaydoc`]: <https://crates.io/crates/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](
|
||||
|
Loading…
x
Reference in New Issue
Block a user