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

75 lines
1.6 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
----
2024-11-15 08:13:45 +01:00
== Variables for "Rougail"
2024-07-10 21:27:48 +02:00
[cols="1a,1a"]
2024-07-10 21:27:48 +02:00
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
2024-07-10 21:27:48 +02:00
|
2024-11-15 08:13:45 +01:00
2024-07-10 21:27:48 +02:00
**rougail.var** +
2024-11-15 08:13:45 +01:00
`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
2024-11-15 08:13:45 +01:00
* 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
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
2024-07-10 21:27:48 +02:00
|
2024-11-15 08:13:45 +01:00
**rougail.my_dyn_family___val1__.var** +
**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. +
2024-11-15 08:13:45 +01:00
**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
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
2024-07-10 21:27:48 +02:00
|
2024-11-15 08:13:45 +01:00
2024-07-10 21:27:48 +02:00
**rougail.var2** +
2024-11-15 08:13:45 +01:00
`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. +
2024-11-15 08:13:45 +01:00
**Default**:
2024-07-10 21:27:48 +02:00
2024-11-15 08:13:45 +01:00
* the value of the variable "rougail.my_dyn_family___val1__.var"
* the value of the variable "rougail.my_dyn_family___val2__.var"
|====
2024-07-10 21:27:48 +02:00