Skip to content

Commit

Permalink
Add documentation links to Actix-web and Gotham test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
bardiharborow authored and djc committed Jul 11, 2019
1 parent f0c80e8 commit 4bd2967
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions askama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 4bd2967

Please sign in to comment.