From 506a38e5b08deab222d25680fa7cabff02a096c5 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 30 Jun 2020 09:43:09 +0200 Subject: Move optional filter documentation into filters section --- book/src/integrations.md | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'book/src/integrations.md') diff --git a/book/src/integrations.md b/book/src/integrations.md index ed0fec0..25bcc18 100644 --- a/book/src/integrations.md +++ b/book/src/integrations.md @@ -50,26 +50,3 @@ 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. - -## The `json` filter - -Enabling the `serde-json` filter will enable the use of the `json` filter. -This will output formatted JSON for any value that implements the required -`Serialize` trait. - -``` -{ - "foo": "{{ foo }}", - "bar": {{ bar|json }} -} -``` - -## The `yaml` filter - -Enabling the `serde-yaml` filter will enable the use of the `yaml` filter. -This will output formatted JSON for any value that implements the required -`Serialize` trait. - -``` -{{ foo|yaml }} -``` \ No newline at end of file -- cgit