rougail/tests/dictionaries_old/01auto_jinja_if_int/yml/00-base.yml

19 lines
349 B
YAML

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