clay/test.xml
Gwendolyn d706fb8904 added clay-xml with xmllib2 that reads in an xml file
with test.xml as input it produces the same output as clay-demo (except for different order of properties in the debug print)
2023-02-08 01:15:56 +01:00

12 lines
976 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<clay>
<document width="800" height="400" background-color="#cef9f2ff">
<flex direction="row" wrap="wrap" align-items="stretch" align-content="stretch" gap="20" padding="20">
<text background-color="#04E76280" width="100" flex-grow="1" flex-shrink="1" align="center" vertical-align="middle">ITEM 1</text>
<text background-color="#22312780" width="300" flex-grow="1" flex-shrink="1" align="center" vertical-align="middle">ITEM 2</text>
<text background-color="#DC007380" width="200" flex-grow="1" flex-shrink="1" align="center" vertical-align="middle">ITEM 3</text>
<text background-color="#008BF880" width="400" flex-grow="1" flex-shrink="1" align="center" vertical-align="middle">ITEM 4</text>
<text background-color="#47006380" width="250" flex-grow="1" flex-shrink="1" align="center" vertical-align="middle">ITEM 5</text>
</flex>
</document>
</clay>