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

8.9 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 for "Rougail"

Variable                                                                                                    Description                                                                                                
rougail.condition1
boolean standard mandatory
A first conditional variable.
Default: false
rougail.condition2
boolean standard mandatory
A second conditional variable.
Default: false

a family

standard hidden

Hidden: if condition1 is false.

Variable                                                                                                    Description                                                                                                
rougail.family.variable
string standard hidden
A variable.
Hidden: if condition2 is false.