rougail-output-doc/tests/docs/base/04_5disabled_calculation.adoc

46 lines
2.1 KiB
Text

== dictionaries/rougail/00-base.yml
[,yaml]
----
version: '1.1'
condition: no # a conditional variable
variable1:
description: a first variable
disabled:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: if condition is egal to "yes"
variable2:
description: a second variable
disabled:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: if condition is egal to "yes"
----
== Variables pour "rougail"
[cols="121a,121a",options="header"]
|====
| Variable | Description
|
**rougail.condition** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `obligatoire` |
A conditional variable. +
**Défaut**: no
|
**rougail.variable1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `obligatoire` _`désactivé`_ |
A first variable. +
**Désactivé**: if condition is egal to "yes".
|
**rougail.variable2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `obligatoire` _`désactivé`_ |
A second variable. +
**Désactivé**: if condition is egal to "yes".
|====