fixed the examples

This commit is contained in:
Udo 2021-12-07 01:36:55 +00:00
parent 1f0f08f787
commit 8195154e4c
4 changed files with 11 additions and 10 deletions

View File

@ -4,7 +4,7 @@ void show_stuff()
{
//context->header["Content-Type"] = "text/plain";
<html>
<><html>
Mwahahaaha <?= time() ?>
<div>hello world: <?= context->params["HTTP_HOST"] ?></div>
<pre>
@ -169,14 +169,14 @@ California Privacy Notice
Lifewire is part of the Dotdash publishing family.
</pre>
</html>
</html></>
}
RENDER()
{
<html>
<><html>
<link rel="stylesheet" href='style.css?v=1'></link>
<h1>
<a href="index.uce">UCE Test</a>:
@ -184,6 +184,6 @@ RENDER()
</h1>
<? show_stuff(); ?>
<pre><?= var_dump(context->params) ?></pre>
</html>
</html></>
}

View File

@ -3,7 +3,7 @@
RENDER()
{
<html>
<><html>
<link rel="stylesheet" href='style.css?v=1'></link>
<h1>
<a href="index.uce">UCE Test</a>:
@ -42,6 +42,6 @@ RENDER()
<label>CGI Params</label>
<pre><?= var_dump(context->params) ?></pre>
</html>
</html></>
}

View File

@ -2,7 +2,7 @@
void show_form()
{
<form action="?" method="post">
<><form action="?" method="post">
<div>
<label>Some text:</label>
<input type="text" name="field" value="<?= context->post["field"] ?>"/>
@ -14,14 +14,14 @@ void show_form()
<div>
<input type="submit" value="Submit Form"/>
</div>
</form>
</form></>
}
RENDER()
{
<html>
<><html>
<link rel="stylesheet" href='style.css?v=1'></link>
<h1>
<a href="index.uce">UCE Test</a>:
@ -38,6 +38,6 @@ RENDER()
<label>CGI Params</label>
<pre><?= var_dump(context->params) ?></pre>
</html>
</html></>
}

View File

@ -16,6 +16,7 @@ Framework
- WebSockets
- Resident code / Cron / Tick?
- Automated Test Suite
- Documentation
Performance