blob: 00f494657517b228e2309647ad33b91312311ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package.moonpath = './?.shared.moon;./?.server.moon;' .. package.moonpath
import flush from require 'lib.init'
error "please specify the module to build as an argumnet" unless arg[1]
require "app.#{arg[1]}"
load_file = (name) ->
file = io.open name
with file\read '*a'
file\close!
print "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>MMM: lunar low-gravity scripting playground</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" />
</head>
<body>
<script src=\"fengari-web.js\"></script>
<script type=\"application/lua\" src=\"lib/init.client.moon.lua\"></script>
#{flush!}
</body>
</html>"
|