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

128 lines
3.3 KiB
Text

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: '1.1'
var: # A identifier variable
- val1
- val2
dyn{{ identifier }}:
description: A dynamic family
dynamic:
variable: _.var
var:
description: A dynamic variable
multi: true
default:
jinja: |
{% for val in __.var %}
t{{ val }}
{% endfor %}
description: add 't' to each var value
dyn_{{ identifier }}:
description: a Second dynamic variable
dynamic:
variable: rougail.dyn{{ identifier }}.var
var:
description: A variable dynamic
default:
type: identifier
var_identifier:
description: identifier from first family
default:
type: identifier
identifier: 0
var_identifiers:
description: merge identifiers
default:
jinja: |
{{ s1 }}-{{ s2 }}
params:
s1:
type: identifier
identifier: 0
s2:
type: identifier
identifier: 1
description: join identifier 1 et identifier 2
----
== Variables for "Rougail"
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A identifier variable. +
**Default**:
* val1
* val2
|====
=== A dynamic family
`standard`
This family builds families dynamically.
**Identifiers**: the value of the variable "rougail.var".
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.dyn__val1__.var** +
**rougail.dyn__val2__.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A dynamic variable. +
**Default**: add 't' to each var value.
|====
==== a Second dynamic variable
`standard`
This family builds families dynamically.
**Identifiers**:
* the value of the variable "rougail.dyn__val1__.var"
* the value of the variable "rougail.dyn__val2__.var"
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.dyn__val1__.dyn___tval1__.var** +
**rougail.dyn__val1__.dyn___tval2__.var** +
**rougail.dyn__val2__.dyn___tval1__.var** +
**rougail.dyn__val2__.dyn___tval2__.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A variable dynamic. +
**Default**: the value of the identifier.
|
**rougail.dyn__val1__.dyn___tval1__.var_identifier** +
**rougail.dyn__val1__.dyn___tval2__.var_identifier** +
**rougail.dyn__val2__.dyn___tval1__.var_identifier** +
**rougail.dyn__val2__.dyn___tval2__.var_identifier** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
Identifier from first family. +
**Default**: the value of the identifier.
|
**rougail.dyn__val1__.dyn___tval1__.var_identifiers** +
**rougail.dyn__val1__.dyn___tval2__.var_identifiers** +
**rougail.dyn__val2__.dyn___tval1__.var_identifiers** +
**rougail.dyn__val2__.dyn___tval2__.var_identifiers** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
Merge identifiers. +
**Default**: join identifier 1 et identifier 2.
|====