89 lines
2.6 KiB
Text
89 lines
2.6 KiB
Text
|
== dictionaries/rougail/00-base.yml
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
version: '1.1'
|
||
|
var: # A suffix variable
|
||
|
- val1
|
||
|
- val2
|
||
|
var2: # a second variable
|
||
|
dyn{{ suffix }}:
|
||
|
description: A dynamic family
|
||
|
type: dynamic
|
||
|
dynamic:
|
||
|
type: variable
|
||
|
variable: _.var
|
||
|
propertyerror: false
|
||
|
hidden:
|
||
|
type: jinja
|
||
|
#FIXME RELATIVE __.var2
|
||
|
jinja: |
|
||
|
{% if rougail.var2 == "no" %}
|
||
|
var2 is no
|
||
|
{% endif %}
|
||
|
description: if var2 is no
|
||
|
vardyn: val # a dynamic variable
|
||
|
----
|
||
|
== Variables for "rougail"
|
||
|
|
||
|
[cols="108a,108a",options="header"]
|
||
|
|====
|
||
|
| Variable | Description
|
||
|
|
|
||
|
**rougail.var** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
||
|
A suffix variable. +
|
||
|
**Default**:
|
||
|
|
||
|
* val1
|
||
|
* val2
|
||
|
|
|
||
|
**rougail.var2** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
|
||
|
A second variable.
|
||
|
|====
|
||
|
|
||
|
=== A dynamic family
|
||
|
|
||
|
`standard` _`hidden`_
|
||
|
|
||
|
**Hidden**: if var2 is no.
|
||
|
|
||
|
|
||
|
This family builds families dynamically.
|
||
|
|
||
|
**Suffixes**: the value of the variable "rougail.var".
|
||
|
|
||
|
[cols="108a,108a",options="header"]
|
||
|
|====
|
||
|
| Variable | Description
|
||
|
|
|
||
|
**rougail.dynval1.vardyn** ou **rougail.dynval2.vardyn** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
|
||
|
A dynamic variable. +
|
||
|
**Default**: val
|
||
|
|====
|
||
|
|
||
|
|
||
|
== Example with mandatory variables not filled in
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
rougail:
|
||
|
var2: example
|
||
|
----
|
||
|
== Example with all variables modifiable
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
rougail:
|
||
|
var:
|
||
|
- val1
|
||
|
- val2
|
||
|
var2: example
|
||
|
dynval1:
|
||
|
vardyn: val
|
||
|
dynval2:
|
||
|
vardyn: val
|
||
|
----
|