rougail-output-doc/tests/docs/base/24_0family_hidden_condition_with_variable.md

8.7 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
condition1: false  # a first conditional variable
condition2: false  # a second conditional variable
family:
  description: a family
  hidden:
    jinja: |
      {% if not rougail.condition1 %}
      condition1 is false
      {% endif %}      
    description: if condition1 is false
  variable:
    description: a variable
    hidden:
      jinja: |
        {% if rougail.condition2 %}
        condition2 is true
        {% endif %}        
      description: if condition2 is false
    mandatory: false

Variables pour "rougail"

Variable                                                                                                 Description                                                                                             
rougail.condition1
boolean standard obligatoire
A first conditional variable.
Défaut: False
rougail.condition2
boolean standard obligatoire
A second conditional variable.
Défaut: False

a family

standard caché

Caché: if condition1 is false.

Variable                                                                                                 Description                                                                                             
rougail.family.variable
string standard caché
A variable.
Caché: if condition2 is false.