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

7.8 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
dyn{{ suffix }}:
  description: a dynamic family
  type: dynamic
  dynamic:
    - val1
    - val2
  hidden:
    type: jinja
    jinja: |
      {% if suffix == 'val2' %}
      disabled
      {% endif %}      
    params:
      suffix:
        type: suffix
    description: if suffix == 'val2'

  var:  # a variable
  family:  # a family
    var:  # a new variable

Variables for "rougail"

a dynamic family

basic hidden

Hidden: if suffix == 'val2'.

This family builds families dynamically.

Suffixes:
- val1
- val2

Variable                                                                                                Description                                                                                            
rougail.dynval1.var ou rougail.dynval2.var
string basic mandatory
A variable.

a family

basic

Variable                                                                                                Description                                                                                            
rougail.dynval1.family.var ou rougail.dynval2.family.var
string basic mandatory
A new variable.

Example with mandatory variables not filled in

---
rougail:
  dynval1:
    var: example
    family:
      var: example
  dynval2:
    var: example
    family:
      var: example

Example with all variables modifiable

---
rougail:
  dynval1:
    var: example
    family:
      var: example
  dynval2:
    var: example
    family:
      var: example