summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/multifile/multifile.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples/multifile/multifile.js')
-rwxr-xr-xkjsembed/docs/examples/multifile/multifile.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/kjsembed/docs/examples/multifile/multifile.js b/kjsembed/docs/examples/multifile/multifile.js
new file mode 100755
index 00000000..03d7c10e
--- /dev/null
+++ b/kjsembed/docs/examples/multifile/multifile.js
@@ -0,0 +1,10 @@
+#!/usr/bin/env kjscmd
+
+// Shows you how to use multiple script files.
+
+var a = ':-)';
+
+println( 'multifile: Starting...' );
+load( 'otherfile.js' );
+println( 'multifile: Ending, ' + a );
+