rougail-output-doc/tests/docs/examples/04_5disabled_calculation.md

45 lines
773 B
Markdown
Raw Normal View History

2024-11-15 08:13:45 +01:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
condition: no # a conditional variable
variable1:
description: a first variable
disabled:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: if condition is egal to "yes"
variable2:
description: a second variable
disabled:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: if condition is egal to "yes"
```
# Example with mandatory variables not filled in
```yaml
---
rougail:
variable1: example
variable2: example
```
# Example with all variables modifiable
```yaml
---
rougail:
condition: no
variable1: example
variable2: example
```