aboutsummaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-05 09:26:27 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-05 09:26:27 +0000
commitdb83379662c2e2c240e2f121e19b943e4e4387c5 (patch)
tree69338eddc66db1f535607b16dcf66a2ac82c14e5 /root
parentsome cleanup (diff)
downloadmmm-db83379662c2e2c240e2f121e19b943e4e4387c5.tar.gz
mmm-db83379662c2e2c240e2f121e19b943e4e4387c5.zip
rename "moon ->" to "fn ->"
Diffstat (limited to 'root')
-rw-r--r--root/animations/init.moon2
-rw-r--r--root/animations/koch.moon3
-rw-r--r--root/animations/twisted.moon4
-rw-r--r--root/articles/init.moon2
-rw-r--r--root/articles/mmmfs/gallery.moon6
-rw-r--r--root/articles/mmmfs/init.moon16
-rw-r--r--root/articles/realities.moon2
-rw-r--r--root/experiments/center_of_mass.moon2
-rw-r--r--root/experiments/init.moon2
-rw-r--r--root/experiments/tags/init.moon2
-rw-r--r--root/init.moon2
-rw-r--r--root/meta/init.moon2
-rw-r--r--root/meta/test_component.moon2
-rw-r--r--root/meta/todo.moon2
14 files changed, 24 insertions, 25 deletions
diff --git a/root/animations/init.moon b/root/animations/init.moon
index c968cfd..ff8ef4b 100644
--- a/root/animations/init.moon
+++ b/root/animations/init.moon
@@ -6,7 +6,7 @@ require = relative ...
Fileder {
'name: alpha': 'animations',
'title: text/plain': 'canvas animations',
- 'moon -> mmm/dom': (path) => div {
+ 'fn -> mmm/dom': (path) => div {
h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' },
ul for child in *@children
name = child\gett 'name: alpha'
diff --git a/root/animations/koch.moon b/root/animations/koch.moon
index 4d16b8a..f7927d4 100644
--- a/root/animations/koch.moon
+++ b/root/animations/koch.moon
@@ -109,5 +109,4 @@ with Fileder {
@ctx\restore!
- -- .props['preview: moon -> mmm/component'] = => TwistedDemo true
- .props['moon -> mmm/component'] = => KochDemo!
+ .props['fn -> mmm/component'] = => KochDemo!
diff --git a/root/animations/twisted.moon b/root/animations/twisted.moon
index 68bdac6..00b11c5 100644
--- a/root/animations/twisted.moon
+++ b/root/animations/twisted.moon
@@ -47,5 +47,5 @@ with Fileder {
draw i
draw 1
- .props['preview: moon -> mmm/component'] = => TwistedDemo true
- .props['moon -> mmm/component'] = => TwistedDemo!
+ .props['preview: fn -> mmm/component'] = => TwistedDemo true
+ .props['fn -> mmm/component'] = => TwistedDemo!
diff --git a/root/articles/init.moon b/root/articles/init.moon
index 483aa32..4cab81b 100644
--- a/root/articles/init.moon
+++ b/root/articles/init.moon
@@ -6,7 +6,7 @@ require = relative ...
Fileder {
'name: alpha': 'articles',
'title: text/plain': 'articles and papers',
- 'moon -> mmm/dom': (path) => div {
+ 'fn -> mmm/dom': (path) => div {
h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' },
ul for child in *@children
name = child\gett 'name: alpha'
diff --git a/root/articles/mmmfs/gallery.moon b/root/articles/mmmfs/gallery.moon
index 3abad43..4713101 100644
--- a/root/articles/mmmfs/gallery.moon
+++ b/root/articles/mmmfs/gallery.moon
@@ -6,12 +6,12 @@ Fileder = define_fileders ...
with Fileder {
'name: alpha': 'gallery',
'title: text/plain': "A Gallery of 25 random pictures, come in!",
- 'preview: moon -> mmm/dom': => div {
+ 'preview: fn -> mmm/dom': => div {
'the first pic as a little taste:',
br!,
img src: @children[1]\get 'preview', 'URL -> image/png'
}
- 'moon -> mmm/dom': =>
+ 'fn -> mmm/dom': =>
link = (child) -> a {
href: '#',
onclick: -> BROWSER\navigate child.path
@@ -22,7 +22,7 @@ with Fileder {
table.insert content, 1, h1 'gallery index'
div content
- 'slideshow: moon -> mmm/dom': =>
+ 'slideshow: fn -> mmm/dom': =>
import ReactiveVar, text, elements from require 'mmm.component'
index = ReactiveVar 1
diff --git a/root/articles/mmmfs/init.moon b/root/articles/mmmfs/init.moon
index 8b1ce01..8227a70 100644
--- a/root/articles/mmmfs/init.moon
+++ b/root/articles/mmmfs/init.moon
@@ -7,10 +7,10 @@ Fileder {
'description: text/plain': 'a file, operating and content-management system to live in (powers this site)',
-- main content
- -- doesn't have a name prefix (e.g. preview: moon -> mmm/dom)
- -- uses the 'moon ->' conversion to execute the lua/pre moon function on get
+ -- doesn't have a name prefix (e.g. preview: fn -> mmm/dom)
+ -- uses the 'fn ->' conversion to execute the lua function on @get
-- resolves to a value of type mmm/dom
- 'moon -> mmm/dom': () =>
+ 'fn -> mmm/dom': () =>
html = require 'mmm.dom'
import article, h1, h2, h3, p, div, a, sup, ol, li, span, code, pre, br from html
@@ -205,7 +205,7 @@ and some bold **text** and `code tags` with me.",
append h3 "type chains"
append p "In addition, a property type can be encoded using multiple types in a ", (code 'type chain'), ".
- For example the root node you are viewing currently is actually defined as ", (code 'moon -> mmm/dom'), ",
+ For example the root node you are viewing currently is actually defined as ", (code 'fn -> mmm/dom'), ",
meaning it's value is a pre moon function returing a regular ", (code 'mmm/dom'), " value."
append p "Both value chains and 'sideways' converts are resolved using the same mechanism,
@@ -214,7 +214,7 @@ and some bold **text** and `code tags` with me.",
append pre moon [[
{
- inp: 'moon -> (.+)',
+ inp: 'fn -> (.+)',
out: '%1',
transform: (val, fileder) -> val fileder
}
@@ -234,7 +234,7 @@ and some bold **text** and `code tags` with me.",
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': =>
+ 'preview: fn -> mmm/dom': =>
import img from require 'mmm.dom'
img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type
}
@@ -262,8 +262,8 @@ If you are reading this in the source, then c'mon, just scroll past and give me
-- main content is image/png, to be interpreted by URL to access
'URL -> image/png': 'https://picsum.photos/200?random',
- -- preview is a lua/pre moon function that neturns an mmm/dom value
- 'preview: moon -> mmm/dom': =>
+ -- preview is a lua/moonscript function that neturns an mmm/dom value
+ 'preview: fn -> mmm/dom': =>
import img from require 'mmm.dom'
img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type
}
diff --git a/root/articles/realities.moon b/root/articles/realities.moon
index 78d7bae..1d8c9fa 100644
--- a/root/articles/realities.moon
+++ b/root/articles/realities.moon
@@ -4,7 +4,7 @@ Fileder = define_fileders ...
Fileder {
'name: alpha': 'realities'
'description: text/plain': 'exploring the nesting relationships of virtual and other realities'
- 'moon -> mmm/component': =>
+ 'fn -> mmm/component': =>
import elements from require 'mmm.component'
import h1, h2, p, a, i, div, ol, li, br, hr, span, button, section, article from elements
diff --git a/root/experiments/center_of_mass.moon b/root/experiments/center_of_mass.moon
index 3d0e924..41cf8a4 100644
--- a/root/experiments/center_of_mass.moon
+++ b/root/experiments/center_of_mass.moon
@@ -131,7 +131,7 @@ with Fileder {
@ctx\fillText char, x + w/2 - cx, y - cy
x += w
- .props['moon -> mmm/dom'] = ->
+ .props['fn -> mmm/dom'] = ->
_content = {}
append = (x) -> table.insert _content, x
diff --git a/root/experiments/init.moon b/root/experiments/init.moon
index 65f3852..ad3e06a 100644
--- a/root/experiments/init.moon
+++ b/root/experiments/init.moon
@@ -6,7 +6,7 @@ require = relative ...
Fileder {
'name: alpha': 'experiments',
'title: text/plain': 'various experiments',
- 'moon -> mmm/dom': (path) => div {
+ 'fn -> mmm/dom': (path) => div {
h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' },
ul for child in *@children
name = child\gett 'name: alpha'
diff --git a/root/experiments/tags/init.moon b/root/experiments/tags/init.moon
index 611d722..6b7945b 100644
--- a/root/experiments/tags/init.moon
+++ b/root/experiments/tags/init.moon
@@ -6,7 +6,7 @@ require = relative ...
Fileder {
'name: alpha': 'tags',
'description: text/plain': 'defining toggles, categories etc. with only tags and functional hooks',
- 'moon -> mmm/component': if MODE == 'CLIENT' then =>
+ 'fn -> mmm/component': if MODE == 'CLIENT' then =>
import add_tag, rmv_tag, Node, Hierarchy, Toggle, NamespacedToggle from require '.tags'
import ReactiveVar, tohtml, text, elements from require 'mmm.component'
import article, div, form, span, h3, a, input, textarea, button from elements
diff --git a/root/init.moon b/root/init.moon
index 8639f50..41be710 100644
--- a/root/init.moon
+++ b/root/init.moon
@@ -4,7 +4,7 @@ require = relative ...
Fileder {
'name: alpha': '',
- 'moon -> mmm/dom': =>
+ 'fn -> mmm/dom': =>
import article, h1, h3, div, b, p, a, br, ul, tt, li, img from require 'mmm.dom'
import opairs from require 'mmm.ordered'
diff --git a/root/meta/init.moon b/root/meta/init.moon
index 0ad56c2..4c2fc15 100644
--- a/root/meta/init.moon
+++ b/root/meta/init.moon
@@ -6,7 +6,7 @@ require = relative ...
Fileder {
'name: alpha': 'meta',
'title: text/plain': 'about mmm',
- 'moon -> mmm/dom': (path) => div {
+ 'fn -> mmm/dom': (path) => div {
style: { 'max-width': '700px' },
h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' },
p "mmm is a collection of Lua/Moonscript modules for web development.",
diff --git a/root/meta/test_component.moon b/root/meta/test_component.moon
index 381302c..d5fb6f1 100644
--- a/root/meta/test_component.moon
+++ b/root/meta/test_component.moon
@@ -4,7 +4,7 @@ Fileder = define_fileders ...
Fileder {
'name: alpha': 'test_mmm.component'
'description: text/plain': 'Tests for mmm.component'
- 'moon -> mmm/dom': =>
+ 'fn -> mmm/dom': =>
import article, div, h1, ul, li, pre from require 'mmm.dom'
_content = {}
diff --git a/root/meta/todo.moon b/root/meta/todo.moon
index df779bf..a568a74 100644
--- a/root/meta/todo.moon
+++ b/root/meta/todo.moon
@@ -4,7 +4,7 @@ Fileder = define_fileders ...
Fileder {
'name: alpha': 'todo'
'description: text/plain': 'TodoMVC using mmm.component'
- 'moon -> mmm/component': =>
+ 'fn -> mmm/component': =>
import ReactiveVar, text, elements from require 'mmm.component'
import article, div, form, span, h3, a, input from elements