diff options
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}" --- } |
