rougail-output-doc/tests/docs/base/24_0family_mandatory_condition.adoc

34 lines
1.4 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 condition
var:
description: a variable
mandatory:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: only if rougail.condition has the value "yes"
----
== Variables pour "rougail"
2024-07-10 21:27:48 +02:00
[cols="112a,112a",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 condition. +
**Défaut**: no
2024-07-10 21:27:48 +02:00
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` _`obligatoire`_ |
2024-07-10 21:27:48 +02:00
A variable. +
**Obligatoire**: only if rougail.condition has the value "yes".
2024-07-10 21:27:48 +02:00
|====