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

113 lines
4.6 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.dynval1.var** or **rougail.dynval2.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{{ identifier }}.var".
[cols="1a,1a"]
|====
| Variable | Description
|
**rougail.dynval1.dyn_tval1.var**, **rougail.dynval1.dyn_tval2.var**, **rougail.dynval2.dyn_tval1.var** or **rougail.dynval2.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.dynval1.dyn_tval1.var_identifier**, **rougail.dynval1.dyn_tval2.var_identifier**, **rougail.dynval2.dyn_tval1.var_identifier** or **rougail.dynval2.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.dynval1.dyn_tval1.var_identifiers**, **rougail.dynval1.dyn_tval2.var_identifiers**, **rougail.dynval2.dyn_tval1.var_identifiers** or **rougail.dynval2.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.
|====