Note that to_nice_yaml(indent=X) was new in 2.2 (#17085)
The ability to pass indent parameter to to_nice_yaml was introduced in 2.2, but this is not noted in the docs.pull/4420/head
parent
f4bd38a153
commit
b3c686f4c5
|
@ -27,7 +27,7 @@ For human readable output, you can use::
|
||||||
{{ some_variable | to_nice_json }}
|
{{ some_variable | to_nice_json }}
|
||||||
{{ some_variable | to_nice_yaml }}
|
{{ some_variable | to_nice_yaml }}
|
||||||
|
|
||||||
It's also possible to change the indentation of both::
|
It's also possible to change the indentation of both (new in version 2.2)::
|
||||||
|
|
||||||
{{ some_variable | to_nice_json(indent=2) }}
|
{{ some_variable | to_nice_json(indent=2) }}
|
||||||
{{ some_variable | to_nice_yaml(indent=8) }}
|
{{ some_variable | to_nice_yaml(indent=8) }}
|
||||||
|
|
Loading…
Reference in New Issue