rougail-output-doc/tests/docs/base/60_6family_dynamic_leadership.md
2024-08-05 14:38:59 +02:00

9.2 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
var:  # a suffix variable
  - val1
  - val2
dyn{{ suffix }}:
  description: a dynamic family
  type: dynamic
  dynamic:
    type: variable
    variable: _.var
  leadership:
    description: a leadership
    type: leadership
    leader:
      description: a leader
      multi: true
    follower1:
      description: a follower1
      mandatory: false
    follower2:
      description: a follower2
      mandatory: false

Variables for "rougail"

Variable                                                                                       Description                                                                                   
rougail.var
string standard mandatory unique multiple
A suffix variable.
Default:
- val1
- val2

a dynamic family

basic

This family builds families dynamically.

Suffixes: the value of the variable "rougail.var".

a leadership

basic

This family contains lists of variable blocks.

Variable                                                                                       Description                                                                                   
rougail.dynval1.leadership.leader ou rougail.dynval2.leadership.leader
string basic mandatory unique multiple
A leader.
rougail.dynval1.leadership.follower1 ou rougail.dynval2.leadership.follower1
string standard
A follower1.
rougail.dynval1.leadership.follower2 ou rougail.dynval2.leadership.follower2
string standard
A follower2.

Example with all variables modifiable

---
rougail:
  var:
    - val1
    - val2
  dynval1:
    leadership:
      - leader: example
        follower1: example
        follower2: example
  dynval2:
    leadership:
      - leader: example
        follower1: example
        follower2: example