sub-invoke()

This commit is contained in:
udo
2021-10-29 14:17:00 +00:00
parent a65a3d1207
commit fa432a0482
14 changed files with 196 additions and 87 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ RENDER()
{
<html>
<link rel="stylesheet" href='style.css?v=1'></link>
<link rel="stylesheet" href='style.css'></link>
<h1>
<a href="index.uce">UCE Test</a>:
Index
@@ -13,6 +13,7 @@ RENDER()
<li><a href="hello.uce">Hello</a></li>
<li><a href="post.uce">Form Post</a></li>
<li><a href="post-multipart.uce">Form Multipart Post</a></li>
<li><a href="working-dir.uce">Working Directory</a></li>
</ul>
<pre><?= var_dump(context->params) ?></pre>
</html>
+2 -1
View File
@@ -65,7 +65,8 @@ textarea {
pre {
height: 20%;
overflow: auto;
padding. 8px;
padding: 8px;
border: 2px solid rgba(0,0,0,0.2);
background: rgba(100,100,100,0.15);
font-family: monospace;
}
+6
View File
@@ -0,0 +1,6 @@
RENDER()
{
echo("Sub-Invoke Working dir: " + get_cwd() + "\n");
}
+19
View File
@@ -0,0 +1,19 @@
RENDER()
{
<>
<link rel="stylesheet" href='style.css'></link>
<h1>
<a href="index.uce">UCE Test</a>:
Working Directory
</h1>
<pre><?
echo("Base WD: " + get_cwd() + "\n");
invoke("/Code/uce.openfu.com/uce/test/test2/working-dir-test.uce");
?></pre>
<pre><?= var_dump(context->params) ?></pre>
</>
}