rougail-output-doc/tests/docs/base/40_0leadership_follower_default_calculation.adoc

58 lines
2 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
version: '1.1'
leader:
description: a leadership
type: leadership
leader: # a leader
follower1: value # a follower
follower2:
description: a second follower
default:
type: jinja
jinja: |
{{ _.follower1 }}
description: returns follower1 value
----
== Variables for "rougail"
=== a leadership
`basic`
This family contains lists of variable blocks.
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**rougail.leader.leader** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `unique` `multiple` |
A leader.
|
**rougail.leader.follower1** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A follower. +
**Default**: value
|
**rougail.leader.follower2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A second follower. +
**Default**: returns follower1 value.
|====
== Example with all variables modifiable
[,yaml]
----
rougail:
leader:
- leader: example
follower1: value
follower2: value
----