aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Bardi Harborow <bardi@bardiharborow.com>2019-07-11 16:53:37 +1000
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-07-11 09:14:43 +0200
commit4bd29679c022a56b9fa8790d9095cdf8b0ee19b8 (patch)
tree57c2046985b1656fba8b674bbc784d22dc25b584
parentf0c80e854f3597c8eb48063ad205842a721da60c (diff)
downloadaskama-4bd29679c022a56b9fa8790d9095cdf8b0ee19b8.tar.gz
askama-4bd29679c022a56b9fa8790d9095cdf8b0ee19b8.tar.bz2
askama-4bd29679c022a56b9fa8790d9095cdf8b0ee19b8.zip
Add documentation links to Actix-web and Gotham test cases.
-rw-r--r--askama/src/lib.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs
index cf6bf30..5729e2c 100644
--- a/askama/src/lib.rs
+++ b/askama/src/lib.rs
@@ -454,14 +454,18 @@
//! ## Actix-web integration
//!
//! Enabling the `with-actix-web` feature appends an implementation of Actix-web's
-//! `Responder` trait for each template type. This makes it easy to return a value of
-//! that type in an Actix-web handler.
+//! `Responder` trait for each template type. This makes it easy to trivially return
+//! a value of that type in an Actix-web handler. See
+//! [the example](https://github.com/djc/askama/blob/master/testing/tests/actix_web.rs)
+//! from the Askama test suite for more on how to integrate.
//!
//! ## Gotham integration
//!
-//! Enabling the `with-gotham` feature appends an implementation of Gotham's `IntoResponse`
-//! trait for each template type. This makes it easy to return a value of that type in a
-//! Gotham handler.
+//! Enabling the `with-gotham` feature appends an implementation of Gotham's
+//! `IntoResponse` trait for each template type. This makes it easy to trivially
+//! return a value of that type in a Gotham handler. See
+//! [the example](https://github.com/djc/askama/blob/master/testing/tests/gotham.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`.