diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-06 21:33:51 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2017-01-06 21:33:51 +0100 |
commit | e71a130607fe5d21e2ee2544f4c6c90e8d5591b5 (patch) | |
tree | 96f4f93884f772c2d8dcc25381fb7318f1105d7b /docs/api.rst | |
parent | ffe0caa1f03a4131e5b740cb34847771d4ca8887 (diff) | |
download | jinja-e71a130607fe5d21e2ee2544f4c6c90e8d5591b5.tar.gz |
Ported tojson filter. Fixes #458
Diffstat (limited to 'docs/api.rst')
-rw-r--r-- | docs/api.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst index 107acd65..8bf0fdfe 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -565,6 +565,18 @@ Example:: The default target that is issued for links from the `urlize` filter if no other target is defined by the call explicitly. +``json.dumps_function``: + If this is set to a value other than `None` then the `tojson` filter + will dump with this function instead of the default one. Note that + this function should accept arbitrary extra arguments which might be + passed in the future from the filter. Currently the only argument + that might be passed is `indent`. The default dump function is + ``json.dumps``. + +``json.dumps_kwargs``: + Keyword arguments to be passed to the dump function. The default is + ``{'sort_keys': True}``. + Utilities --------- |