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

51 lines
1.1 KiB
Text
Raw Normal View History

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: 1.1
var1:
description: a first variable
default: value
var2:
description: a second variable
disabled:
variable: _.var1
when: value
var3:
description: a third variable
default:
jinja: |
{% if _.var1 == 'value' or _.var2 == 'blah' %}
value
{% endif %}
----
2024-11-15 08:13:45 +01:00
== Variables for "Rougail"
[cols="1a,1a"]
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
|
2024-11-15 08:13:45 +01:00
**rougail.var1** +
2024-11-15 08:13:45 +01:00
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A first variable. +
2024-11-15 08:13:45 +01:00
**Default**: value
|
2024-11-15 08:13:45 +01:00
**rougail.var2** +
2024-11-15 08:13:45 +01:00
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `__disabled__` |
A second variable. +
2024-11-15 08:13:45 +01:00
**Disabled**: when the variable "rougail.var1" has the value "value".
|
2024-11-15 08:13:45 +01:00
**rougail.var3** +
2024-11-15 08:13:45 +01:00
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A third variable. +
2024-11-15 08:13:45 +01:00
**Default**: depends on a calculation.
|====