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

83 lines
2.7 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 suffix variable
- 1
- 2
dyn{{ suffix }}:
description: a dynamic family
type: dynamic
dynamic:
type: variable
variable: _.var
var: val # a variable inside dynamic family
var2:
description: a variable
default:
type: jinja
jinja: |
{{ rougail.dyn1.var }}
description: get the value of rougail.dyn1.var
----
== Variables for "rougail"
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` `unique` `multiple` |
A suffix variable. +
**Default**:
* 1
* 2
|====
=== a dynamic family
`standard`
This family builds families dynamically.
**Suffixes**: the value of the variable "rougail.var".
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**rougail.dyn1.var** ou **rougail.dyn2.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A variable inside dynamic family. +
**Default**: val
|====
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**rougail.var2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A variable. +
**Default**: get the value of rougail.dyn1.var.
|====
== Example with all variables modifiable
[,yaml]
----
rougail:
var:
- 1
- 2
dyn1:
var: val
dyn2:
var: val
var2: val
----