rougail/tests/dictionaries/12auto_jinja_if_int/yml/00-base.yml

20 lines
349 B
YAML
Raw Normal View History

2023-09-04 19:18:40 +02:00
version: '0.10'
variables:
- variable:
- name: bool
type: boolean
- name: int1
type: number
- name: int2
type: number
constraints:
- fill:
- name: '{% if bool %}1{% else %}2{% endif %}'
type: jinja
target:
- text: int1
- name: '{% if not bool %}3{% else %}4{% endif %}'
type: jinja
target:
- text: int2