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

50 lines
730 B
Markdown
Raw Normal View History

2024-12-02 20:21:31 +01:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
var:
description: a suffix variable
multi: true
mandatory: false
test:
- val1
- val2
my_dyn_family_{{ identifier }}:
description: a dynamic family
dynamic:
variable: _.var
var:
description: a variable inside a dynamic family
default:
type: identifier
mandatory: false
var2:
description: a variable
multi: true
default:
variable: rougail.my_dyn_family_{{ identifier }}.var
```
# Example with all variables modifiable
```yaml
---
rougail:
var:
- val1
- val2
my_dyn_family_val1:
var: val1
my_dyn_family_val2:
var: val2
var2:
- val1
- val2
```