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

49 lines
1.2 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 for "Rougail"
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.condition** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A conditional variable. +
**Default**: no
|
**rougail.variable1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
A first variable. +
**Disabled**: if condition is egal to "yes".
|
**rougail.variable2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
A second variable. +
**Disabled**: if condition is egal to "yes".
|====