diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 07:58:11 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 08:03:07 +0000 |
| commit | 18ecd4c9dc6b478761de62e173ec86b4ad724492 (patch) | |
| tree | 02650380349cbe701d3a02860e9ab2f98500e15c /root | |
| parent | property browsing (diff) | |
| download | mmm-18ecd4c9dc6b478761de62e173ec86b4ad724492.tar.gz mmm-18ecd4c9dc6b478761de62e173ec86b4ad724492.zip | |
fix mmmfs article for now
Diffstat (limited to 'root')
| -rw-r--r-- | root/articles/mmmfs/ignore -> text\$markdown.md (renamed from root/articles/mmmfs/text$markdown.md) | 0 | ||||
| -rw-r--r-- | root/articles/mmmfs/markdown/preview: text$markdown.md (renamed from root/articles/mmmfs/markdown/text$markdown.md) | 0 | ||||
| -rw-r--r-- | root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon | 42 | ||||
| -rw-r--r-- | root/meta/mmm.dom/text$moonscript -> mmm$dom.moon | 66 |
4 files changed, 54 insertions, 54 deletions
diff --git a/root/articles/mmmfs/text$markdown.md b/root/articles/mmmfs/ignore -> text\$markdown.md index 1c1b4f9..1c1b4f9 100644 --- a/root/articles/mmmfs/text$markdown.md +++ b/root/articles/mmmfs/ignore -> text\$markdown.md diff --git a/root/articles/mmmfs/markdown/text$markdown.md b/root/articles/mmmfs/markdown/preview: text$markdown.md index 4b38ef2..4b38ef2 100644 --- a/root/articles/mmmfs/markdown/text$markdown.md +++ b/root/articles/mmmfs/markdown/preview: text$markdown.md 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 } ]] diff --git a/root/meta/mmm.dom/text$moonscript -> mmm$dom.moon b/root/meta/mmm.dom/text$moonscript -> mmm$dom.moon index 07dab49..fe1dfd4 100644 --- a/root/meta/mmm.dom/text$moonscript -> mmm$dom.moon +++ b/root/meta/mmm.dom/text$moonscript -> mmm$dom.moon @@ -75,17 +75,17 @@ return dom.br() import h3, i, code from require 'mmm.dom' h3 "this is a ", -(i 'headline'), -" with some ", -code 'rich text' + (i 'headline'), + " with some ", + code 'rich text' ]], [[ local d = require 'mmm.dom' return d.h3( -"this is a ", -d.i 'headline', -" with some ", -d.code 'rich text' + "this is a ", + d.i 'headline', + " with some ", + d.code 'rich text' ) ]] @@ -99,24 +99,24 @@ d.code 'rich text' import article, h3, span, div, i, p from require 'mmm.dom' article { -h3 "This is a headline with ", i "cursive text" -p { - "The content goes ", - i "here." -} -p "more paragraphs can be added as well, of course." + h3 "This is a headline with ", i "cursive text" + p { + "The content goes ", + i "here." + } + p "more paragraphs can be added as well, of course." } ]], [[ local dom = require 'mmm.dom' local article, h3, span, div, i, p = dom.article, dom.h3, dom.span, dom.div, dom.i, dom.p return article{ -h3{ "This is a headline with ", i "cursive text" }, -p{ - "The content goes ", - i"here." -}, -p"more paragraphs can be added as well, of course." + h3{ "This is a headline with ", i "cursive text" }, + p{ + "The content goes ", + i"here." + }, + p"more paragraphs can be added as well, of course." } ]] @@ -128,17 +128,17 @@ p"more paragraphs can be added as well, of course." import div from require 'mmm.dom' div { -id: 'my_div', -class: 'shadow', -"This is div matches the CSS selector `div#my_div.shadow`" + id: 'my_div', + class: 'shadow', + "This is div matches the CSS selector `div#my_div.shadow`" } ]], [[ local div = require('mmm.dom').div return div{ -id = 'my_div', -class = 'shadow', -"This is div matches the CSS selector `div#my_div.shadow`" + id = 'my_div', + class = 'shadow', + "This is div matches the CSS selector `div#my_div.shadow`" } ]] @@ -153,20 +153,20 @@ class = 'shadow', import div from require 'mmm.dom' div "red div with white text", style: { -background: 'red', -color: '#ffffff', + background: 'red', + color: '#ffffff', } ]], [[ local div = require('mmm.dom').div return div( -"red div with white text", -{ - style = { - background = 'red', - color = '#ffffff', + "red div with white text", + { + style = { + background = 'red', + color = '#ffffff', + } } -} ) ]] } |
