diff options
author | Anthony Nowell <anthony@algorithmia.com> | 2017-08-13 00:46:04 -0600 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-23 12:40:14 +0200 |
commit | 2d6785b71414cc70adfb24ee742e3defa5841bbb (patch) | |
tree | 76d691a26e266b98f21481104155c523f5e62693 /testing/templates | |
parent | d0a3d51dcda1f4c0509f9e083e3d02c81d23776a (diff) | |
download | askama-2d6785b71414cc70adfb24ee742e3defa5841bbb.tar.gz askama-2d6785b71414cc70adfb24ee742e3defa5841bbb.tar.bz2 askama-2d6785b71414cc70adfb24ee742e3defa5841bbb.zip |
Adding optional json filter
Diffstat (limited to 'testing/templates')
-rw-r--r-- | testing/templates/json.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/templates/json.html b/testing/templates/json.html index e711c10..250b7be 100644 --- a/testing/templates/json.html +++ b/testing/templates/json.html @@ -1 +1,4 @@ -{"foo": "{{ foo }}", "bar": "{{ bar }}"} +{ + "foo": "{{ foo }}", + "bar": {{ bar|json }} +} |