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

53 lines
1.8 KiB
Text

== dictionaries/rougail/00-base.yml
[,yaml]
----
version: '1.1'
var: # a suffix variable
- val1
- val2
dyn{{ identifier }}:
description: A dynamic family
dynamic:
jinja: |
{% for val in _.var %}
{{ loop.index }}
{% endfor %}
description: index of suffix value
var: val # a dynamic variable
----
== Variables pour "rougail"
[cols="110a,110a",options="header"]
|====
| Variable | Description
|
**rougail.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `obligatoire` `unique` `multiple` |
A suffix variable. +
**Défaut**:
* val1
* val2
|====
=== A dynamic family
`standard`
This family builds families dynamically.
**Identifiers**: index of suffix value.
[cols="110a,110a",options="header"]
|====
| Variable | Description
|
**rougail.dyn1.var** ou **rougail.dyn2.var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `obligatoire` |
A dynamic variable. +
**Défaut**: val
|====