trying to port web app starter from PHP

This commit is contained in:
udo
2026-04-19 09:38:23 +00:00
parent 46d98a092f
commit be514d63d6
546 changed files with 76910 additions and 2807 deletions
+36
View File
@@ -0,0 +1,36 @@
RENDER(Request& context)
{
DTree t;
<>
<link rel="stylesheet" href='style.css'></link>
<h1>
<a href="index.uce">UCE Test</a>:
File Append
</h1>
File Append:
<pre style="white-space: pre-wrap"><?
if(context.get["cmd"] == "clear")
file_put_contents("/tmp/test.txt", "");
file_append("/tmp/test.txt", context.server->request_count, "\thello world\t", 2, "\t", time(), "\t", microtime(), "\n");
print(file_get_contents("/tmp/test.txt"));
?></pre>
<button onclick="document.location.href='?cmd=add';">Add Line</button>
<button onclick="document.location.href='?cmd=clear';">Clear File</button>
Params
<pre><?= var_dump(context.params) ?></pre>
</>
}