diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-07 20:42:54 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-07 20:42:54 +0200 |
commit | df2637c0324d2cb3f5925b8595417b08496de4a5 (patch) | |
tree | 53a7c34df3b4e4cf41b73ee5fa97e00a7b8757dc /askama_shared/src/generator.rs | |
parent | e559ed42102d425f23701e061cdea509a0f325b4 (diff) | |
download | askama-df2637c0324d2cb3f5925b8595417b08496de4a5.tar.gz askama-df2637c0324d2cb3f5925b8595417b08496de4a5.tar.bz2 askama-df2637c0324d2cb3f5925b8595417b08496de4a5.zip |
Return MarkupDisplay from json filter
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 2a56083..9ac6964 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -270,7 +270,7 @@ impl<'a> Generator<'a> { self._visit_filter_args(args); self.write(")?"); - if name == "safe" || name == "escape" || name == "e" { + if name == "safe" || name == "escape" || name == "e" || name == "json" { DisplayWrap::Wrapped } else { DisplayWrap::Unwrapped |