mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
doc: fixed indentation in salt.renderers.jinja's documentation
This commit is contained in:
parent
f5d053a033
commit
1d848118c9
1 changed files with 8 additions and 8 deletions
|
@ -169,9 +169,9 @@ yaml_encode
|
|||
baz: {{ zap|yaml_encode }}
|
||||
{%- endload %}
|
||||
|
||||
In the above case ``{{ bar }}`` and ``{{ foo.bar }}`` should be
|
||||
identical and ``{{ baz }}`` and ``{{ foo.baz }}`` should be
|
||||
identical.
|
||||
In the above case ``{{ bar }}`` and ``{{ foo.bar }}`` should be
|
||||
identical and ``{{ baz }}`` and ``{{ foo.baz }}`` should be
|
||||
identical.
|
||||
|
||||
yaml_dquote
|
||||
Serializes a string into a properly-escaped YAML double-quoted
|
||||
|
@ -190,11 +190,11 @@ yaml_dquote
|
|||
baz: {{ baz|yaml_dquote }}
|
||||
{%- endload %}
|
||||
|
||||
In the above case ``{{ bar }}`` and ``{{ foo.bar }}`` should be
|
||||
identical and ``{{ baz }}`` and ``{{ foo.baz }}`` should be
|
||||
identical. If variable contents are not guaranteed to be a string
|
||||
then it is better to use ``yaml_encode`` which handles all YAML
|
||||
scalar types.
|
||||
In the above case ``{{ bar }}`` and ``{{ foo.bar }}`` should be
|
||||
identical and ``{{ baz }}`` and ``{{ foo.baz }}`` should be
|
||||
identical. If variable contents are not guaranteed to be a string
|
||||
then it is better to use ``yaml_encode`` which handles all YAML
|
||||
scalar types.
|
||||
|
||||
yaml_squote
|
||||
Similar to the ``yaml_dquote`` filter but with single quotes. Note
|
||||
|
|
Loading…
Add table
Reference in a new issue