rougail-output-doc/tests/docs/examples/60_5family_dynamic_hidden_suffix.md

696 B

Table of Contents

dictionaries/rougail/00-base.yml

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

  var:
    description: a variable
    mandatory: false
  family:  # a family
    var:
      description: a new variable
      mandatory: false

Example with all variables modifiable

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