From 18ecd4c9dc6b478761de62e173ec86b4ad724492 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 6 Nov 2018 18:58:11 +1100 Subject: fix mmmfs article for now --- "root/articles/mmmfs/ignore -> text\\$markdown.md" | 7 ++++ .../mmmfs/markdown/preview: text$markdown.md | 6 ++++ root/articles/mmmfs/markdown/text$markdown.md | 6 ---- root/articles/mmmfs/text$markdown.md | 7 ---- .../mmmfs/text$moonscript -> fn -> mmm$dom.moon | 42 +++++++++++----------- 5 files changed, 34 insertions(+), 34 deletions(-) create mode 100644 "root/articles/mmmfs/ignore -> text\\$markdown.md" create mode 100644 root/articles/mmmfs/markdown/preview: text$markdown.md delete mode 100644 root/articles/mmmfs/markdown/text$markdown.md delete mode 100644 root/articles/mmmfs/text$markdown.md (limited to 'root/articles') diff --git "a/root/articles/mmmfs/ignore -> text\\$markdown.md" "b/root/articles/mmmfs/ignore -> text\\$markdown.md" new file mode 100644 index 0000000..1c1b4f9 --- /dev/null +++ "b/root/articles/mmmfs/ignore -> text\\$markdown.md" @@ -0,0 +1,7 @@ +## this is a markdown version or something. + +There's no content here so switch back to the real one! +(Assuming there is a switching UI by the time you are reading this, which I assume since you are reading this at all. +If you are reading this in the source, then c'mon, just scroll past and give me a break.) + +(the switching UI has now been built.) diff --git a/root/articles/mmmfs/markdown/preview: text$markdown.md b/root/articles/mmmfs/markdown/preview: text$markdown.md new file mode 100644 index 0000000..4b38ef2 --- /dev/null +++ b/root/articles/mmmfs/markdown/preview: text$markdown.md @@ -0,0 +1,6 @@ +See I have like + +- a list of things +- (two things) + +and some bold **text** and `code tags` with me. diff --git a/root/articles/mmmfs/markdown/text$markdown.md b/root/articles/mmmfs/markdown/text$markdown.md deleted file mode 100644 index 4b38ef2..0000000 --- a/root/articles/mmmfs/markdown/text$markdown.md +++ /dev/null @@ -1,6 +0,0 @@ -See I have like - -- a list of things -- (two things) - -and some bold **text** and `code tags` with me. diff --git a/root/articles/mmmfs/text$markdown.md b/root/articles/mmmfs/text$markdown.md deleted file mode 100644 index 1c1b4f9..0000000 --- a/root/articles/mmmfs/text$markdown.md +++ /dev/null @@ -1,7 +0,0 @@ -## this is a markdown version or something. - -There's no content here so switch back to the real one! -(Assuming there is a switching UI by the time you are reading this, which I assume since you are reading this at all. -If you are reading this in the source, then c'mon, just scroll past and give me a break.) - -(the switching UI has now been built.) diff --git a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon index 5d454a1..0d59c42 100644 --- a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon +++ b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon @@ -150,9 +150,9 @@ append pre moon [[ -- render a preview block preview = (title, content) -> div { -h3 title, style: { ... }, -content or span '(no renderable content)', style: { ... }, -style: { ... } + h3 title, style: { ... }, + content or span '(no renderable content)', style: { ... }, + style: { ... } } append div for child in *@children @@ -172,13 +172,13 @@ preview title, content append pre moon [[ Fileder { -'title: text/plain': "I'm not even five lines of markdown but i render myself!", -'preview: text/markdown': "See I have like + 'title: text/plain': "I'm not even five lines of markdown but i render myself!", + 'preview: text/markdown': "See I have like -- a list of things -- (two things) + - a list of things + - (two things) -and some bold **text** and `code tags` with me.", + and some bold **text** and `code tags` with me.", } ]] @@ -187,11 +187,11 @@ and some bold **text** and `code tags` with me.", append pre moon [[ { -inp: 'text/markdown', -out: 'mmm/dom', -transform: (md) -> - -- polymorphic client/serverside implementation here, - -- uses lua-discount on the server, marked.js on the client + inp: 'text/markdown', + out: 'mmm/dom', + transform: (md) -> + -- polymorphic client/serverside implementation here, + -- uses lua-discount on the server, marked.js on the client } ]] @@ -206,9 +206,9 @@ transform: (md) -> append pre moon [[ { -inp: 'fn -> (.+)', -out: '%1', -transform: (val, fileder) -> val fileder + inp: 'fn -> (.+)', + out: '%1', + transform: (val, fileder) -> val fileder } ]] @@ -224,11 +224,11 @@ transform: (val, fileder) -> val fileder append pre moon [[ Fileder { -'title: text/plain': "Hey I'm like a link to picture or smth", -'URL -> image/png': 'https://picsum.photos/200?random', -'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 + 'title: text/plain': "Hey I'm like a link to picture or smth", + 'URL -> image/png': 'https://picsum.photos/200?random', + '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 } ]] -- cgit v1.2.3