blob: 7d1898273123f1b92d42918a02aa19cf0b948c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|