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

6.8 KiB

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

Variables pour "rougail"

a dynamic family

standard caché

Caché: if suffix == 'val2'.

This family builds families dynamically.

Identifiers:
- val1
- val2

Variable                                                                                       Description                                                                                   
rougail.dynval1.var ou rougail.dynval2.var
string standard
A variable.

a family

standard

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