aboutsummaryrefslogtreecommitdiffstats
path: root/askama_hyper/tests/basic.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-03-03exchange hyper features From<Template> for hyper::Body with TryFromLibravatar Rudi Floren1-22/+11
The previous implementation hid the error returned by render, which made it impossible for callers to react to rendering errors. While having a simple way to call into would be nice, there is not way to have both implementations without adding any manual specialization. Thus, the From impl is replaced by the TryFrom impl.
2023-02-13Add impl From<{Template}> for hyper::Body deriveLibravatar Rudi Floren1-5/+39
with-hyper now derives an impl allowing Templates to be passed to functions with trait bounds for Into<hyper::Body>.
2023-01-30Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman1-1/+1
2022-07-25Implement basic hyper integrationLibravatar René Kijewski1-0/+70
The integration is based on askama_gotham. There is no specific trait to convert an arbitrary T to `hyper::Response`, so I used `From<Template> for hyper::Response`.