2024-07-10 21:27:48 +02:00
|
|
|
== dictionaries/rougail/00-base.yml
|
|
|
|
|
|
|
|
[,yaml]
|
|
|
|
----
|
2024-11-08 22:11:34 +01:00
|
|
|
---
|
2024-07-10 21:27:48 +02:00
|
|
|
version: '1.1'
|
|
|
|
bool: false # a boolean variable
|
|
|
|
int1:
|
|
|
|
description: first integer variable
|
|
|
|
type: number
|
|
|
|
default:
|
|
|
|
jinja: |
|
|
|
|
{% if rougail.bool %}1{% else %}2{% endif %}
|
|
|
|
description: if bool returns 1 otherwise return 2
|
|
|
|
int2:
|
|
|
|
description: second integer variable
|
|
|
|
type: number
|
|
|
|
default:
|
|
|
|
jinja: |
|
|
|
|
{% if not rougail.bool %}3{% else %}4{% endif %}
|
|
|
|
description: if bool returns 3 otherwise return 4
|
|
|
|
----
|
2024-11-15 08:13:45 +01:00
|
|
|
== Variables for "Rougail"
|
2024-07-10 21:27:48 +02:00
|
|
|
|
2024-11-08 22:11:34 +01:00
|
|
|
[cols="1a,1a"]
|
2024-07-10 21:27:48 +02:00
|
|
|
|====
|
2024-11-15 08:13:45 +01:00
|
|
|
| Variable | Description
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
|
2024-07-10 21:27:48 +02:00
|
|
|
**rougail.bool** +
|
2024-11-15 08:13:45 +01:00
|
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[boolean]` `standard` `mandatory` |
|
2024-07-10 21:27:48 +02:00
|
|
|
A boolean variable. +
|
2024-11-15 08:13:45 +01:00
|
|
|
**Default**: false
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
|
2024-07-10 21:27:48 +02:00
|
|
|
**rougail.int1** +
|
2024-11-15 08:13:45 +01:00
|
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` |
|
2024-07-10 21:27:48 +02:00
|
|
|
First integer variable. +
|
2024-11-15 08:13:45 +01:00
|
|
|
**Default**: if bool returns 1 otherwise return 2.
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
|
2024-07-10 21:27:48 +02:00
|
|
|
**rougail.int2** +
|
2024-11-15 08:13:45 +01:00
|
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` |
|
2024-07-10 21:27:48 +02:00
|
|
|
Second integer variable. +
|
2024-11-15 08:13:45 +01:00
|
|
|
**Default**: if bool returns 3 otherwise return 4.
|
2024-07-10 21:27:48 +02:00
|
|
|
|====
|
|
|
|
|