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

103 lines
2.8 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
general:
description: général
varname:
type: string
description: No change
multi: true
default:
- a
version: '1.0'
----
== dictionaries/extra/00-base.yml
[,yaml]
----
version: '1.1'
var: # a varaible
- a
dyn_{{ suffix }}:
type: dynamic
dynamic:
type: variable
variable: _.var
var:
----
== Variables for "rougail"
=== général
`standard`
[cols="128a,128a",options="header"]
|====
| Variable | Description
|
**rougail.general.varname** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
No change. +
**Default**:
* a
|====
== Variables for "extra"
[cols="105a,105a",options="header"]
|====
| Variable | Description
|
**extra.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A varaible. +
**Default**:
* a
|====
=== "dyn__a_"
`basic`
This family builds families dynamically.
**Suffixes**: the value of the variable "extra.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:
general:
varname:
- a
extra:
var:
- a
dyn_a:
var: example
----