rougail-output-doc/tests/docs/base/44_6leadership_follower_disabled_calculation.adoc

56 lines
2.2 KiB
Text

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: '1.1'
condition: yes # a condition
leader:
description: a leadership
type: leadership
leader:
description: a leader
multi: true
follower:
description: a follower
disabled:
jinja: |
{% if __.condition == "yes" %}
disabled
{% endif %}
description: if condition is 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 condition. +
**Default**: yes
|====
=== a leadership
`basic`
This family contains lists of variable blocks.
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.leader.leader** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `unique` `multiple` |
A leader.
|
**rougail.leader.follower** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` `_disabled_` |
A follower. +
**Disabled**: if condition is yes.
|====