rougail-output-doc/tests/docs/examples/60_5family_dynamic_hidden_suffix.md

47 lines
696 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'
dyn{{ identifier }}:
description: a dynamic family
dynamic:
- val1
- val2
hidden:
jinja: |
{% if suffix == 'val2' %}
disabled
{% endif %}
params:
suffix:
type: identifier
description: if suffix == 'val2'
var:
description: a variable
mandatory: false
family: # a family
var:
description: a new variable
mandatory: false
```
# Example with all variables modifiable
```yaml
---
rougail:
dynval1:
var: example
family:
var: example
dynval2:
var: example
family:
var: example
```