feat: add row/col tags

This commit is contained in:
2024-10-13 18:29:58 +01:00
parent 29de0aa47d
commit ebe34ecebb
10 changed files with 123 additions and 37 deletions

1
test_cml/code.cml Normal file
View File

@@ -0,0 +1 @@
<bundle src="/app.bundle" />

9
test_cml/header.cml Normal file
View File

@@ -0,0 +1,9 @@
<meta>
<fragment>
<name>header</header>
<attr type="string" name="content" />
</fragment>
</meta>
<text level="1" style="bold italic">{content}</text>

View File

@@ -1,4 +1,16 @@
<import src="https://google.com/header.cml" />
<box>
<text level="1">hello from clef</text>
<text>this is rendered from hello.cml</text>
</box>
<header content="my content" />
<row id="kasjksajdkj">
<text level="1">hello from clef</text>
<text>this is rendered from hello.cml</text>
</row>
<bundle src="/app.bundle" />

17
test_cml/permission.cml Normal file
View File

@@ -0,0 +1,17 @@
<meta>
<title>asdklasdk</title>
<description>askdjksajdk</description>
<!-- permission system -->
<permissions>
<filesystem description="aksdjsadjksjdk" />
<camera description="asldklsadk" />
<location description="" type="precise|approximate" />
<gpu />
</permissions>
</meta>
<text id="label" />
<bundle src="./app.wasm" />

4
test_cml/test.cml Normal file
View File

@@ -0,0 +1,4 @@
<col>
<text>hello from clef</text>
<text>this is rendered from test.cml</text>
</col>