summaryrefslogtreecommitdiff
path: root/swat/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'swat/scripting')
-rw-r--r--swat/scripting/test.ejs10
1 files changed, 10 insertions, 0 deletions
diff --git a/swat/scripting/test.ejs b/swat/scripting/test.ejs
new file mode 100644
index 0000000000..e69df9230f
--- /dev/null
+++ b/swat/scripting/test.ejs
@@ -0,0 +1,10 @@
+
+/*
+ some test ejs code
+*/
+function showArray(name, array) {
+ write("<h3>Array: " + name + "</h3>\n");
+ for (v in array) {
+ write(name + "[" + v + "]=" + array[v] + "<br>\n");
+ }
+}