44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
|
== dictionaries/rougail/00-base.yml
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
version: '1.1'
|
||
|
int:
|
||
|
description: A number
|
||
|
type: number
|
||
|
validators:
|
||
|
- type: jinja
|
||
|
jinja: |
|
||
|
{% if _.int > 100 %}
|
||
|
value is too high
|
||
|
{% endif %}
|
||
|
description: the max value is 100
|
||
|
----
|
||
|
== Variables for "rougail"
|
||
|
|
||
|
[cols="105a,105a",options="header"]
|
||
|
|====
|
||
|
| Variable | Description
|
||
|
|
|
||
|
**rougail.int** +
|
||
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `basic` `mandatory` |
|
||
|
A number. +
|
||
|
**Validator**: the max value is 100.
|
||
|
|====
|
||
|
|
||
|
|
||
|
== Example with mandatory variables not filled in
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
rougail:
|
||
|
int: 42
|
||
|
----
|
||
|
== Example with all variables modifiable
|
||
|
|
||
|
[,yaml]
|
||
|
----
|
||
|
rougail:
|
||
|
int: 42
|
||
|
----
|