Skip to content
Myr

Add note on HTML usage of tojson filter

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent e71a130 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:jinja2/filters.py+2 added
936 unmodified lines
937938 The indent parameter can be used to enable pretty printing. Set it to939 the number of spaces that the structures should be indented with.940941 Note that this filter is for use in HTML contexts only.942943 .. versionadded:: 2.9944 """945 policies = eval_ctx.environment.policies946 dumper = policies['json.dumps_function']
114 unmodified lines