rougail-output-doc/tests/docs/examples/24_0family_hidden_condition_sub_family.md

41 lines
622 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 # the variable use has condition
family:
description: possibly hidden family
hidden:
jinja: |
{% if _.condition == "yes" %}
condition is yes
{% endif %}
description: if condition is yes
subfamily:
var1: # a variable
```
# Example with mandatory variables not filled in
```yaml
---
rougail:
family:
subfamily:
var1: example
```
# Example with all variables modifiable
```yaml
---
rougail:
condition: no
family:
subfamily:
var1: example
```