aboutsummaryrefslogtreecommitdiffstats
path: root/test.moon
diff options
context:
space:
mode:
Diffstat (limited to 'test.moon')
-rw-r--r--test.moon16
1 files changed, 16 insertions, 0 deletions
diff --git a/test.moon b/test.moon
new file mode 100644
index 0000000..7d18982
--- /dev/null
+++ b/test.moon
@@ -0,0 +1,16 @@
+package.moonpath = './?.server.moon;./?/init.server.moon;' .. package.moonpath
+require 'mmm.init'
+import render from require 'mmm.mmmfs'
+import load_fileder from require 'mmm.mmmfs.fs'
+
+-- usage:
+-- moon render.moon <output> <fileder_path>
+{ output_name, path } = arg
+
+assert output_name, "please specify the output filename as an argument"
+assert path, "please specify the path name to build as an argument"
+
+root = load_fileder 'root' .. path
+root\mount path
+
+print root