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

53 lines
867 B
Markdown

---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
var: # a suffix variable
- val1
- val2
'{{ identifier }}_dyn':
description: a dynamic family
dynamic:
variable: _.var
var1:
description: value is suffix
default:
type: identifier
var2:
description: value is first variable
default:
variable: rougail.{{ identifier }}_dyn.var1
var3:
description: value is relative first variable
default:
variable: _.var1
var4:
description: value is first variable of val1
default:
variable: rougail.val1_dyn.var1
```
# Example with all variables modifiable
```yaml
---
rougail:
var:
- val1
- val2
val1_dyn:
var1: val1
var2: val1
var3: val1
var4: val1
val2_dyn:
var1: val2
var2: val2
var3: val2
var4: val1
```