aboutsummaryrefslogtreecommitdiffstats
path: root/root/articles
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/articles
parentsome cleanup (diff)
downloadmmm-db83379662c2e2c240e2f121e19b943e4e4387c5.tar.gz
mmm-db83379662c2e2c240e2f121e19b943e4e4387c5.zip
rename "moon ->" to "fn ->"
Diffstat (limited to 'root/articles')
-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
4 files changed, 13 insertions, 13 deletions
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