diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 10:17:55 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 10:17:55 +0000 |
| commit | 30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b (patch) | |
| tree | dc56f20ec4d78115e15761c402589b5aec94ef55 /root/articles/mmmfs/init.moon | |
| parent | defer all scripts (diff) | |
| download | mmm-30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b.tar.gz mmm-30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b.zip | |
move mmm code from lib to mmm etc
Diffstat (limited to 'root/articles/mmmfs/init.moon')
| -rw-r--r-- | root/articles/mmmfs/init.moon | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/root/articles/mmmfs/init.moon b/root/articles/mmmfs/init.moon index 2b3ef5e..8b1ce01 100644 --- a/root/articles/mmmfs/init.moon +++ b/root/articles/mmmfs/init.moon @@ -1,4 +1,4 @@ -import define_fileders from require 'lib.mmmfs' +import define_fileders from require 'mmm.mmmfs' Fileder = define_fileders ... require = relative ... @@ -11,7 +11,7 @@ Fileder { -- uses the 'moon ->' conversion to execute the lua/pre moon function on get -- resolves to a value of type mmm/dom 'moon -> mmm/dom': () => - html = require 'lib.dom' + html = require 'mmm.dom' import article, h1, h2, h3, p, div, a, sup, ol, li, span, code, pre, br from html moon = if MODE == 'SERVER' @@ -235,7 +235,7 @@ Fileder { 'title: text/plain': "Hey I'm like a link to picture or smth", 'URL -> image/png': 'https://picsum.photos/200?random', 'preview: moon -> mmm/dom': => - import img from require 'lib.dom' + import img from require 'mmm.dom' img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type } ]] @@ -264,7 +264,7 @@ If you are reading this in the source, then c'mon, just scroll past and give me -- preview is a lua/pre moon function that neturns an mmm/dom value 'preview: moon -> mmm/dom': => - import img from require 'lib.dom' + import img from require 'mmm.dom' img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type } |
