aboutsummaryrefslogtreecommitdiffstats
path: root/app/mmmfs
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-10-29 08:37:40 +0000
committers-ol <s-ol@users.noreply.github.com>2018-10-29 08:40:08 +0000
commite5491bc7fbd867812500c845db99b55b35db0666 (patch)
tree7204730bc3cd99027a3104b315b6b3996bc794a4 /app/mmmfs
parentbetter conversion inverence for mmmfs (diff)
downloadmmm-e5491bc7fbd867812500c845db99b55b35db0666.tar.gz
mmm-e5491bc7fbd867812500c845db99b55b35db0666.zip
rename lib.html to lib.dom
Diffstat (limited to 'app/mmmfs')
-rw-r--r--app/mmmfs/conversion.moon2
-rw-r--r--app/mmmfs/tree/gallery.moon2
-rw-r--r--app/mmmfs/tree/init.moon6
3 files changed, 5 insertions, 5 deletions
diff --git a/app/mmmfs/conversion.moon b/app/mmmfs/conversion.moon
index a670e2e..b204ff8 100644
--- a/app/mmmfs/conversion.moon
+++ b/app/mmmfs/conversion.moon
@@ -1,4 +1,4 @@
-import text, code from require 'lib.html'
+import text, code from require 'lib.dom'
import tohtml from require 'lib.component'
-- limit function to one argument
diff --git a/app/mmmfs/tree/gallery.moon b/app/mmmfs/tree/gallery.moon
index 93ca58d..86478d3 100644
--- a/app/mmmfs/tree/gallery.moon
+++ b/app/mmmfs/tree/gallery.moon
@@ -1,4 +1,4 @@
-import div, h1, a, img, br from require 'lib.html'
+import div, h1, a, img, br from require 'lib.dom'
children = for i=1,100
id = math.floor math.random! * 200
diff --git a/app/mmmfs/tree/init.moon b/app/mmmfs/tree/init.moon
index 1d6a116..d30afc9 100644
--- a/app/mmmfs/tree/init.moon
+++ b/app/mmmfs/tree/init.moon
@@ -6,7 +6,7 @@ Fileder {
-- uses the 'moon' interp to execute the lua/moonscript function on get
-- resolves to a value of type mmm/dom
'moon -> mmm/dom': () =>
- html = require 'lib.html'
+ html = require 'lib.dom'
import article, h1, h2, h3, p, div, a, sup, ol, li, span, code, pre, br from html
code = do
@@ -192,7 +192,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.html'
+ import img from require 'lib.dom'
img src: @gett nil, -- look for: main content
'image/png', -- with image type, and
URL: (url) => url -- override URL interp to get raw URL
@@ -223,7 +223,7 @@ If you are reading this in the source, then c'mon, just scroll past and give me
-- preview is a lua/moonscript function that neturns an mmm/dom value
'preview: moon -> mmm/dom': =>
- import img from require 'lib.html'
+ import img from require 'lib.dom'
img src: @gett nil, 'URL -> image/png' -- look for main content with 'URL to png' type
}