rougail-output-doc/tests/docs/examples/40_2leadership_calculation_param_index.md

40 lines
567 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'
leader:
description: leadership
type: leadership
leader: # a leader
- a
- b
- c
follower1:
description: a follower
type: number
default:
jinja: '{{ index }}'
params:
index:
type: index
description: returns index
```
# Example with all variables modifiable
```yaml
---
rougail:
leader:
- leader: a
follower1: 0
- leader: b
follower1: 1
- leader: c
follower1: 2
```