diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 05:55:32 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 05:57:09 +0000 |
| commit | 5be83254486bef58f85f43dba719b674f0c3bc92 (patch) | |
| tree | 519608d655497a60e47202504aaed6bd98655717 /test.moon | |
| parent | mmm.component fix (diff) | |
| download | mmm-5be83254486bef58f85f43dba719b674f0c3bc92.tar.gz mmm-5be83254486bef58f85f43dba719b674f0c3bc92.zip | |
implement mmmfs on real fs
Diffstat (limited to 'test.moon')
| -rw-r--r-- | test.moon | 16 |
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 |
