rougail-output-doc/tests/docs/base/60_9extra_dynamic.adoc

76 lines
2 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
version: 1.1
var: # a variable
- a
----
== dictionaries/extra/00-base.yml
[,yaml]
----
version: 1.1
dyn_{{ suffix }}:
type: dynamic
dynamic:
type: variable
variable: rougail.var
var:
----
== Variables for "rougail"
[cols="128a,128a",options="header"]
|====
| Variable | Description
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A variable. +
**Default**:
* a
|====
== Variables for "extra"
=== "dyn__a_"
`basic`
This family builds families dynamically.
**Suffixes**: the value of the variable "rougail.var".
[cols="105a,105a",options="header"]
|====
| Variable | Description
|
**extra.dyn_a.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `basic` `mandatory` |
Var.
|====
== Example with mandatory variables not filled in
[,yaml]
----
extra:
dyn_a:
var: example
----
== Example with all variables modifiable
[,yaml]
----
rougail:
var:
- a
extra:
dyn_a:
var: example
----