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

70 lines
2.9 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
---
2024-07-10 21:27:48 +02:00
version: '1.1'
var: # a suffix variable
- val1
- val2
my_dyn_family_{{ identifier }}:
2024-07-10 21:27:48 +02:00
description: a dynamic family
dynamic:
variable: _.var
var:
description: a variable inside a dynamic family
default:
type: identifier
2024-07-10 21:27:48 +02:00
mandatory: false
var2:
description: a variable
multi: true
default:
variable: rougail.my_dyn_family_{{ identifier }}.var
2024-07-10 21:27:48 +02:00
----
== Variables for "rougail"
2024-07-10 21:27:48 +02:00
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
| Variable | Description
2024-07-10 21:27:48 +02:00
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
2024-07-10 21:27:48 +02:00
A suffix variable. +
**Default**:
2024-07-10 21:27:48 +02:00
* val1
* val2
2024-07-10 21:27:48 +02:00
|====
=== a dynamic family
`standard`
This family builds families dynamically.
**Identifiers**: the value of the variable "rougail.var".
2024-07-10 21:27:48 +02:00
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
| Variable | Description
2024-07-10 21:27:48 +02:00
|
**rougail.my_dyn_family_val1.var** or **rougail.my_dyn_family_val2.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` |
2024-07-10 21:27:48 +02:00
A variable inside a dynamic family. +
**Default**: the value of the identifier.
2024-07-10 21:27:48 +02:00
|====
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
| Variable | Description
2024-07-10 21:27:48 +02:00
|
**rougail.var2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
2024-07-10 21:27:48 +02:00
A variable. +
**Default**: the value of the variable "rougail.my_dyn_family_{{ identifier }}.var".
2024-07-10 21:27:48 +02:00
|====