aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-01-30 13:29:39 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-01 15:19:08 +0000
commit4e87b58bad3879633e4db3c93a152cf6f777784b (patch)
treeb8148c48c2044197af057ab758cdefb11547dae6 /build
parentfix static rendering (diff)
downloadmmm-4e87b58bad3879633e4db3c93a152cf6f777784b.tar.gz
mmm-4e87b58bad3879633e4db3c93a152cf6f777784b.zip
static rendering root prefix
Diffstat (limited to 'build')
-rw-r--r--build/render_all.moon6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/render_all.moon b/build/render_all.moon
index 57406be..1135d27 100644
--- a/build/render_all.moon
+++ b/build/render_all.moon
@@ -8,8 +8,8 @@ add '?/init'
add '?/init.server'
-- usage:
--- moon render_all.moon [STORE] [output] [startpath]
-{ store, output, startpath } = arg
+-- moon render_all.moon [STORE] [output] [URL-prefix]
+{ store, output, prefix } = arg
require 'mmm'
import Fileder, dir_base from require 'mmm.mmmfs.fileder'
@@ -25,6 +25,8 @@ STATIC = {
with io.open path, 'w'
\write val
\close!
+
+ root: prefix
}
require 'mmm.mmmfs'