92 lines
2.2 KiB
Text
92 lines
2.2 KiB
Text
|
== dictionaries/rougail/00-base.yml
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
version: '1.1'
|
||
|
dyn{{ suffix }}:
|
||
|
description: a dynamic family
|
||
|
type: dynamic
|
||
|
dynamic:
|
||
|
- val1
|
||
|
- val2
|
||
|
hidden:
|
||
|
type: jinja
|
||
|
jinja: |
|
||
|
{% if suffix == 'val2' %}
|
||
|
disabled
|
||
|
{% endif %}
|
||
|
params:
|
||
|
suffix:
|
||
|
type: suffix
|
||
|
description: if suffix == 'val2'
|
||
|
|
||
|
var: # a variable
|
||
|
family: # a family
|
||
|
var: # a new variable
|
||
|
----
|
||
|
== Variables
|
||
|
|
||
|
=== a dynamic family
|
||
|
|
||
|
`basic` _`hidden`_
|
||
|
|
||
|
**Hidden**: if suffix == 'val2'.
|
||
|
|
||
|
|
||
|
This family builds families dynamically.
|
||
|
|
||
|
**Suffixes**:
|
||
|
|
||
|
* val1
|
||
|
* val2
|
||
|
|
||
|
[cols="105a,105a",options="header"]
|
||
|
|====
|
||
|
| Variable | Description
|
||
|
|
|
||
|
**dynval1.var** ou **dynval2.var** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
||
|
A variable.
|
||
|
|====
|
||
|
|
||
|
==== a family
|
||
|
|
||
|
`basic`
|
||
|
|
||
|
[cols="105a,105a",options="header"]
|
||
|
|====
|
||
|
| Variable | Description
|
||
|
|
|
||
|
**dynval1.family.var** ou **dynval2.family.var** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
||
|
A new variable.
|
||
|
|====
|
||
|
|
||
|
|
||
|
== Example with mandatory variables not filled in
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
dynval1:
|
||
|
var: example
|
||
|
family:
|
||
|
var: example
|
||
|
dynval2:
|
||
|
var: example
|
||
|
family:
|
||
|
var: example
|
||
|
----
|
||
|
== Example with all variables modifiable
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
dynval1:
|
||
|
var: example
|
||
|
family:
|
||
|
var: example
|
||
|
dynval2:
|
||
|
var: example
|
||
|
family:
|
||
|
var: example
|
||
|
----
|