mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Improve documentation about Comment filter (#34539)
Include a mention to the decoration option, which allows someone to specify the character comment to be used.
This commit is contained in:
parent
80fb81414b
commit
cd1b144c0a
1 changed files with 14 additions and 3 deletions
|
@ -666,6 +666,17 @@ Similar way can be applied style for C (``//...``), C block
|
|||
{{ "Erlang style" | comment('erlang') }}
|
||||
{{ "XML style" | comment('xml') }}
|
||||
|
||||
If you need a specific comment character that is not included by any of the
|
||||
above, you can customize it with::
|
||||
|
||||
{{ "My Special Case" | comment(decoration="! ") }}
|
||||
|
||||
producing::
|
||||
|
||||
!
|
||||
! My Special Case
|
||||
!
|
||||
|
||||
It is also possible to fully customize the comment style::
|
||||
|
||||
{{ "Custom style" | comment('plain', prefix='#######\n#', postfix='#\n#######\n ###\n #') }}
|
||||
|
|
Loading…
Reference in a new issue