summaryrefslogtreecommitdiff
path: root/swat
diff options
context:
space:
mode:
Diffstat (limited to 'swat')
-rw-r--r--swat/esptest/include.html6
-rw-r--r--swat/scripting/test.esp6
2 files changed, 12 insertions, 0 deletions
diff --git a/swat/esptest/include.html b/swat/esptest/include.html
index b488631e83..59322cc9fa 100644
--- a/swat/esptest/include.html
+++ b/swat/esptest/include.html
@@ -8,6 +8,12 @@ including /scripting/test.ejs<p>
calling a function from test.ejs ...<p>
<% showArray("request", request); %>
+including /scripting/test.esp<p>
+<% include /scripting/test.esp %>
+calling a function from test.esp ...<p>
+<% res = testfn('foo'); %>
+result is: @@res
+
<form name="Cancel" method="POST" action="index.html">
<input name="submit" type="submit" value="Cancel"><br>
</form>
diff --git a/swat/scripting/test.esp b/swat/scripting/test.esp
new file mode 100644
index 0000000000..614a42410c
--- /dev/null
+++ b/swat/scripting/test.esp
@@ -0,0 +1,6 @@
+<h3>A esp include file</h3>
+<%
+ function testfn(test) {
+ return "the argument was " + test;
+ }
+%>