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

17 lines
484 B
XML
Raw Normal View History

2023-09-04 19:18:40 +02:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<variables>
<variable name="bool" type="boolean"/>
<variable name="int1" type="number"/>
<variable name="int2" type="number"/>
</variables>
<constraints>
<fill name="{% if bool %}1{% else %}2{% endif %}" type="jinja">
<target>int1</target>
</fill>
<fill name="{% if not bool %}3{% else %}4{% endif %}" type="jinja">
<target>int2</target>
</fill>
</constraints>
</rougail>