diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-08 07:16:35 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-08 07:16:35 +0000 |
| commit | f14faf29401cda74dfc8c21f8c2975ce26f03700 (patch) | |
| tree | 2b8dc84e8de7a5b1550c8dbcbe0984b331e0d644 /root | |
| parent | recursive tup stuff (diff) | |
| download | mmm-f14faf29401cda74dfc8c21f8c2975ce26f03700.tar.gz mmm-f14faf29401cda74dfc8c21f8c2975ce26f03700.zip | |
move tree into dist, recurive tup rendering etc.
Diffstat (limited to 'root')
| -rw-r--r-- | root/Tupdefault.lua | 11 | ||||
| -rw-r--r-- | root/articles/mmmfs/gallery/preview: text$moonscript -> fn -> mmm$dom.moon | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/root/Tupdefault.lua b/root/Tupdefault.lua index b6cf700..e4e433c 100644 --- a/root/Tupdefault.lua +++ b/root/Tupdefault.lua @@ -11,13 +11,20 @@ LUA_PATH += root .. '/?/init.lua' LUA_PATH += root .. '/?/init.server.lua' LUA_PATH = 'LUA_PATH="' .. table.concat(LUA_PATH, ';') .. '"' -exec = LUA_PATH .. ' moon ' .. root .. '/bundle_fileder.moon' +bundle = LUA_PATH .. ' moon ' .. root .. '/bundle_fileder.moon' +render = LUA_PATH .. ' moon ' .. root .. '/render.moon' facets += '<children>' facets += root .. '/<modules>' tup.rule( facets, - '^ BNDL %d^ ' .. exec .. ' %d ' .. inputs .. ' -- %<children>', + '^ BNDL %d^ ' .. bundle .. ' %d ' .. inputs .. ' -- %<children>', { '$bundle.lua', '../<children>' } ) + +tup.rule( + '$bundle.lua', + '^ HTML %d^ ' .. render .. ' ' .. root, + 'index.html' +) diff --git a/root/articles/mmmfs/gallery/preview: text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/gallery/preview: text$moonscript -> fn -> mmm$dom.moon index 83aa7d4..5285629 100644 --- a/root/articles/mmmfs/gallery/preview: text$moonscript -> fn -> mmm$dom.moon +++ b/root/articles/mmmfs/gallery/preview: text$moonscript -> fn -> mmm$dom.moon @@ -5,12 +5,3 @@ import div, img, br from require 'mmm.dom' br!, img src: @children[1]\get 'preview', 'URL -> image/png' } - } - --- for i=1,25 --- id = 120 + i --- .children[i] = Fileder { --- 'name: alpha': "image#{id}" --- 'URL -> image/png': "https://picsum.photos/600/600/?image=#{id}" --- 'preview: URL -> image/png': "https://picsum.photos/200/200/?image=#{id}" --- } |
