67 lines
9.7 KiB
Markdown
67 lines
9.7 KiB
Markdown
|
---
|
||
|
gitea: none
|
||
|
include_toc: true
|
||
|
---
|
||
|
# dictionaries/rougail/00-base.yml
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
version: '1.1'
|
||
|
condition1: false # a first conditional variable
|
||
|
condition2: false # a second conditional variable
|
||
|
family:
|
||
|
description: a family
|
||
|
hidden:
|
||
|
type: jinja
|
||
|
jinja: |
|
||
|
{% if not rougail.condition1 %}
|
||
|
condition1 is false
|
||
|
{% endif %}
|
||
|
description: if condition1 is false
|
||
|
variable:
|
||
|
description: a variable
|
||
|
hidden:
|
||
|
type: jinja
|
||
|
jinja: |
|
||
|
{% if rougail.condition2 %}
|
||
|
condition2 is true
|
||
|
{% endif %}
|
||
|
description: if condition2 is false
|
||
|
```
|
||
|
# Variables for "rougail"
|
||
|
|
||
|
| Variable | Description |
|
||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||
|
| **rougail.condition1**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A first conditional variable.<br/>**Default**: False |
|
||
|
| **rougail.condition2**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second conditional variable.<br/>**Default**: False |
|
||
|
|
||
|
## a family
|
||
|
|
||
|
`basic` _`hidden`_
|
||
|
|
||
|
**Hidden**: if condition1 is false.
|
||
|
|
||
|
| Variable | Description |
|
||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||
|
| **rougail.family.variable**<br/>[`string`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` _`hidden`_ | A variable.<br/>**Hidden**: if condition2 is false. |
|
||
|
|
||
|
|
||
|
# Example with mandatory variables not filled in
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
rougail:
|
||
|
family:
|
||
|
variable: example
|
||
|
```
|
||
|
# Example with all variables modifiable
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
rougail:
|
||
|
condition1: false
|
||
|
condition2: false
|
||
|
family:
|
||
|
variable: example
|
||
|
```
|