rougail-output-doc/tests/docs/base/60_5family_dynamic_calc2.md

53 lines
8.9 KiB
Markdown
Raw Normal View History

2024-07-10 21:27:48 +02:00
---
gitea: none
include_toc: true
---
# dictionaries/rougail/00-base.yml
```yaml
---
version: '1.1'
2024-07-10 21:27:48 +02:00
var: # A suffix variable
- val1
- val2
2024-07-10 21:27:48 +02:00
var2: # a second variable
dyn{{ identifier }}:
2024-07-10 21:27:48 +02:00
description: A dynamic family
dynamic:
variable: _.var
hidden:
jinja: |
{% if _.var2 == "no" %}
2024-07-10 21:27:48 +02:00
var2 is no
{% endif %}
description: if var2 is no
2024-07-10 21:27:48 +02:00
vardyn: val # a dynamic variable
```
# Variables pour "rougail"
2024-07-10 21:27:48 +02:00
| Variable                                                                                                     | Description                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **rougail.var**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `obligatoire` `unique` `multiple` | A suffix variable.<br/>**Défaut**: <br/>- val1<br/>- val2 |
| **rougail.var2**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `obligatoire` | A second variable. |
2024-07-10 21:27:48 +02:00
## A dynamic family
`standard` _`caché`_
2024-07-10 21:27:48 +02:00
**Caché**: if var2 is no.
2024-07-10 21:27:48 +02:00
This family builds families dynamically.
**Identifiers**: la valeur de la variable "rougail.var".
2024-07-10 21:27:48 +02:00
| Variable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **rougail.dynval1.vardyn** ou **rougail.dynval2.vardyn**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `obligatoire` | A dynamic variable.<br/>**Défaut**: val |
2024-07-10 21:27:48 +02:00