diff options
author | cel 🌸 <cel@blos.sm> | 2024-01-24 20:23:18 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-01-24 20:23:18 +0000 |
commit | d3b048544eebf7b8402fb585b4e2531de9b28a33 (patch) | |
tree | 2e697063854d22aff603ba3691c6453ddf5cd87b /book/src/integrations.md | |
parent | ef53238ae2ee77becc44bcb0b77c1c4daceca5af (diff) | |
download | askama-d3b048544eebf7b8402fb585b4e2531de9b28a33.tar.gz askama-d3b048544eebf7b8402fb585b4e2531de9b28a33.tar.bz2 askama-d3b048544eebf7b8402fb585b4e2531de9b28a33.zip |
Diffstat (limited to 'book/src/integrations.md')
-rw-r--r-- | book/src/integrations.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/book/src/integrations.md b/book/src/integrations.md index 918b887..3d6d508 100644 --- a/book/src/integrations.md +++ b/book/src/integrations.md @@ -44,6 +44,18 @@ In case of a run-time error occurring during templating, the response will be of signature, with a status code of `500 Internal Server Error`, mime `*/*`, and an empty `Body`. This preserves the response chain if any custom error handling needs to occur. +## Poem integration + +Enabling the `with-poem` feature appends an implementation of Poem's +`IntoResponse` trait for each template type. This makes it easy to trivially +return a value of that type in a Poem handler. See +[the example](https://github.com/djc/askama/blob/main/askama_poem/tests/basic.rs) +from the Askama test suite for more on how to integrate. + +In case of a run-time error occurring during templating, the response will be of the same +signature, with a status code of `500 Internal Server Error`, mime `*/*`, and an empty `Body`. +This preserves the response chain if any custom error handling needs to occur. + ## Warp integration Enabling the `with-warp` feature appends an implementation of Warp's `Reply` |