diff options
author | Jacob Rothstein <hi@jbr.me> | 2020-07-09 21:06:03 -0700 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-07-14 09:46:12 +0200 |
commit | 29cb90bceb59d9dbea94342dfdd8136e1ef494e6 (patch) | |
tree | 8d4d63527fbaa039ccf7f0982ff8849c238e68d3 /book/src | |
parent | 0a6284aa91e1eb8da81d7b317fb539653e519d0a (diff) | |
download | askama-29cb90bceb59d9dbea94342dfdd8136e1ef494e6.tar.gz askama-29cb90bceb59d9dbea94342dfdd8136e1ef494e6.tar.bz2 askama-29cb90bceb59d9dbea94342dfdd8136e1ef494e6.zip |
askama tide
Diffstat (limited to 'book/src')
-rw-r--r-- | book/src/integrations.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/book/src/integrations.md b/book/src/integrations.md index 25bcc18..2d016c7 100644 --- a/book/src/integrations.md +++ b/book/src/integrations.md @@ -50,3 +50,12 @@ Enabling the `with-warp` feature appends an implementation of Warp's `Reply` trait for each template type. This makes it simple to return a template from a Warp filter. See [the example](https://github.com/djc/askama/blob/master/askama_warp/tests/warp.rs) from the Askama test suite for more on how to integrate. + +## Tide integration + +Enabling the `with-tide` feature appends `Into<tide::Response>` and +`TryInto<tide::Body>` implementations for each template type. This +provides the ability for tide apps to build a response directly from +a template, or to append a templated body to an existing +`Response`. See [the example](https://github.com/djc/askama/blob/master/askama_tide/tests/tide.rs) +from the Askama test suite for more on how to integrate. |