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

47 lines
2.1 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== 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"
2024-07-10 21:27:48 +02:00
[cols="121a,121a",options="header"]
2024-07-10 21:27:48 +02:00
|====
| Variable | Description
2024-07-10 21:27:48 +02:00
|
**rougail.condition** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `obligatoire` |
2024-07-10 21:27:48 +02:00
A conditional variable. +
**Défaut**: no
2024-07-10 21:27:48 +02:00
|
**rougail.variable1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `obligatoire` _`désactivé`_ |
2024-07-10 21:27:48 +02:00
A first variable. +
**Désactivé**: if condition is egal to "yes".
2024-07-10 21:27:48 +02:00
|
**rougail.variable2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `obligatoire` _`désactivé`_ |
2024-07-10 21:27:48 +02:00
A second variable. +
**Désactivé**: if condition is egal to "yes".
2024-07-10 21:27:48 +02:00
|====