71 lines
1.1 KiB
Text
71 lines
1.1 KiB
Text
== 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
|
|
|
|
[cols="1a,1a"]
|
|
|====
|
|
| Variable | Description
|
|
|
|
|
|
|
**dyn__val1__.var** +
|
|
**dyn__val2__.var** +
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
|
|
A variable.
|
|
|====
|
|
|
|
==== a family
|
|
|
|
`standard`
|
|
|
|
[cols="1a,1a"]
|
|
|====
|
|
| Variable | Description
|
|
|
|
|
|
|
**dyn__val1__.family.var** +
|
|
**dyn__val2__.family.var** +
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
|
|
A new variable.
|
|
|====
|
|
|