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

7.5 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
condition: no    # the variable use has condition
family:
  description: possibly hidden family
  hidden:
    type: jinja
    jinja: |
      {% if _.condition == "yes" %}
      condition is yes
      {% endif %}      
    description: if condition is yes
  subfamily:
    var1:  # a variable

Variables for "rougail"

Variable                                                                                                Description                                                                                            
rougail.condition
string standard mandatory
The variable use has condition.
Default: no

possibly hidden family

basic hidden

Hidden: if condition is yes.

rougail.family.subfamily

basic

Variable                                                                                                Description                                                                                            
rougail.family.subfamily.var1
string basic mandatory
A variable.

Example with mandatory variables not filled in

---
rougail:
  family:
    subfamily:
      var1: example

Example with all variables modifiable

---
rougail:
  condition: no
  family:
    subfamily:
      var1: example