46 lines
6.5 KiB
Markdown
46 lines
6.5 KiB
Markdown
|
---
|
||
|
gitea: none
|
||
|
include_toc: true
|
||
|
---
|
||
|
# dictionaries/rougail/00-base.yml
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
version: '1.1'
|
||
|
bool: false # a boolean variable
|
||
|
int1:
|
||
|
description: first integer variable
|
||
|
type: number
|
||
|
default:
|
||
|
type: jinja
|
||
|
jinja: |
|
||
|
{% if rougail.bool %}1{% else %}2{% endif %}
|
||
|
description: if bool returns 1 otherwise return 2
|
||
|
int2:
|
||
|
description: second integer variable
|
||
|
type: number
|
||
|
default:
|
||
|
type: jinja
|
||
|
jinja: |
|
||
|
{% if not rougail.bool %}3{% else %}4{% endif %}
|
||
|
description: if bool returns 3 otherwise return 4
|
||
|
```
|
||
|
# Variables for "rougail"
|
||
|
|
||
|
| Variable | Description |
|
||
|
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||
|
| **rougail.bool**<br/>[`boolean`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A boolean variable.<br/>**Default**: False |
|
||
|
| **rougail.int1**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | First integer variable.<br/>**Default**: if bool returns 1 otherwise return 2. |
|
||
|
| **rougail.int2**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | Second integer variable.<br/>**Default**: if bool returns 3 otherwise return 4. |
|
||
|
|
||
|
|
||
|
# Example with all variables modifiable
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
rougail:
|
||
|
bool: false
|
||
|
int1: 2
|
||
|
int2: 3
|
||
|
```
|