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

12 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
general:
  description: général
  varname:
    type: string
    description: No change
    multi: true
    default:
      - a
version: '1.0'

dictionaries/extra/00-base.yml

---
version: '1.1'
var:  # a varaible
  - a
dyn_{{ suffix }}:
  type: dynamic
  dynamic:
    type: variable
    variable: _.var
  var:

Variables for "rougail"

général

standard

Variable                                                                                                                       Description                                                                                                                   
rougail.general.varname
string standard mandatory unique multiple
No change.
Default:
- a

Variables for "extra"

Variable                                                                                                Description                                                                                            
extra.var
string standard mandatory unique multiple
A varaible.
Default:
- a

"dyn_a"

basic

This family builds families dynamically.

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

Variable                                                                                                Description                                                                                            
extra.dyn_a.var
string basic mandatory
Var.

Example with mandatory variables not filled in

---
extra:
  dyn_a:
    var: example

Example with all variables modifiable

---
rougail:
  general:
    varname:
      - a
extra:
  var:
    - a
  dyn_a:
    var: example