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

7.2 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
condition: no    # a conditional variable
variable1:
  description: a first variable
  disabled:
    type: jinja
    jinja: |
      {% if _.condition == "yes" %}
      condition is yes
      {% endif %}      
    description: if condition is egal to "yes"
variable2:
  description: a second variable
  disabled:
    type: jinja
    jinja: |
      {% if _.condition == "yes" %}
      condition is yes
      {% endif %}      
    description: if condition is egal to "yes"

Variables for "rougail"

Variable                                                                                                             Description                                                                                                         
rougail.condition
string standard mandatory
A conditional variable.
Default: no
rougail.variable1
string basic mandatory disabled
A first variable.
Disabled: if condition is egal to "yes".
rougail.variable2
string basic mandatory disabled
A second variable.
Disabled: if condition is egal to "yes".

Example with mandatory variables not filled in

---
rougail:
  variable1: example
  variable2: example

Example with all variables modifiable

---
rougail:
  condition: no
  variable1: example
  variable2: example