rougail-output-doc/tests/docs/no_namespace/60_5family_dynamic_hidden_suffix.sh

70 lines
5.5 KiB
Bash
Raw Normal View History

2024-11-20 21:12:56 +01:00
# 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
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
Variables ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
a dynamic family
standard hidden
Hidden: if suffix == 'val2'.
This family builds families dynamically.
Identifiers:
 • val1
 • val2
 Variable               Description          
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
dynval1.var
dynval2.var
string standard A variable.
a family
standard
 Variable                    Description               
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
dynval1.family.var
dynval2.family.var
string standard A new variable.