rougail-output-doc/tests/docs/base/00_9choice_variables.adoc

55 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'
source_variable_1: val1 # the first source variable
source_variable_2: val2 # the second source variable
my_variable:
description: a variable
type: choice
choices:
- type: variable
variable: rougail.source_variable_1
- type: variable
variable: rougail.source_variable_2
default: val1
----
== Variables for "rougail"
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**rougail.source_variable_1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
The first source variable. +
**Default**: val1
|
**rougail.source_variable_2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
The second source variable. +
**Default**: val2
|
**rougail.my_variable** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[choice]` `standard` `mandatory` |
A variable. +
**Choices**:
* the value of the variable "rougail.source_variable_1".
* the value of the variable "rougail.source_variable_2".
**Default**: val1
|====
== Example with all variables modifiable
[,yaml]
----
rougail:
source_variable_1: val1
source_variable_2: val2
my_variable: val1
----