64 lines
1.9 KiB
Text
64 lines
1.9 KiB
Text
== dictionaries/rougail/00-base.yml
|
|
|
|
[,yaml]
|
|
----
|
|
version: 1.1
|
|
leader:
|
|
description: leader
|
|
type: leadership
|
|
leader: # a leader
|
|
- a
|
|
- b
|
|
follower:
|
|
description: a follower
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if _.leader == "a" %}
|
|
the value of "leader" is "a"
|
|
{% endif %}
|
|
description: if the value of "leader" is "a"
|
|
default:
|
|
type: variable
|
|
variable: _.leader
|
|
----
|
|
== Variables for "rougail"
|
|
|
|
=== rougail.leader
|
|
|
|
`standard`
|
|
|
|
|
|
This family contains lists of variable blocks.
|
|
|
|
[cols="121a,121a",options="header"]
|
|
|====
|
|
| Variable | Description
|
|
|
|
|
**rougail.leader.leader** +
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
|
A leader. +
|
|
**Default**:
|
|
|
|
* a
|
|
* b
|
|
|
|
|
**rougail.leader.follower** +
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` _`disabled`_ |
|
|
A follower. +
|
|
**Default**: the value of the variable "rougail.leader.leader". +
|
|
**Disabled**: if the value of "leader" is "a".
|
|
|====
|
|
|
|
|
|
== Example with all variables modifiable
|
|
|
|
[,yaml]
|
|
----
|
|
rougail:
|
|
leader:
|
|
- leader: a
|
|
follower: b
|
|
- leader: b
|
|
follower: b
|
|
----
|