summaryrefslogtreecommitdiff
path: root/swat/scripting
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-26 02:08:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:02 -0500
commitfd82bfce3dd95de1b98fc9bf26ea2a2f9bcc0d00 (patch)
tree6669889ccdbe0361c294038ac54ff3b36faf4b79 /swat/scripting
parent7e582319528b674d5f7603409e357138194a0ab1 (diff)
downloadsamba-fd82bfce3dd95de1b98fc9bf26ea2a2f9bcc0d00.tar.gz
samba-fd82bfce3dd95de1b98fc9bf26ea2a2f9bcc0d00.tar.bz2
samba-fd82bfce3dd95de1b98fc9bf26ea2a2f9bcc0d00.zip
r6983: add some sample esp pages to demonstrate the use of some of the features of the server
side scripting language (This used to be commit 519608bbf9c2a032261c00fce9a4f84eb73d1a9e)
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");
+ }
+}