rougail-output-doc/tests/docs/no_namespace/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

a dynamic family

standard caché

Caché: if suffix == 'val2'.

This family builds families dynamically.

Identifiers:
- val1
- val2

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

a family

standard

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