aboutsummaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-05 09:21:55 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-05 09:21:55 +0000
commite5f3ea171290cec5d86e5969d7f8e95c1d8a4ec1 (patch)
tree0cdaea5ce9ee127f1c8770f27ca031f113ede01c /root
parentcooler inline code (diff)
downloadmmm-e5f3ea171290cec5d86e5969d7f8e95c1d8a4ec1.tar.gz
mmm-e5f3ea171290cec5d86e5969d7f8e95c1d8a4ec1.zip
some cleanup
Diffstat (limited to 'root')
-rw-r--r--root/meta/init.moon10
-rw-r--r--root/meta/mmm_dom.moon4
-rw-r--r--root/meta/test_component.moon2
3 files changed, 12 insertions, 4 deletions
diff --git a/root/meta/init.moon b/root/meta/init.moon
index 626cd9e..0ad56c2 100644
--- a/root/meta/init.moon
+++ b/root/meta/init.moon
@@ -1,4 +1,4 @@
-import div, h3, ul, li, a from require 'mmm.dom'
+import div, h3, p, br, ul, li, b, a from require 'mmm.dom'
import define_fileders from require 'mmm.mmmfs'
Fileder = define_fileders ...
require = relative ...
@@ -7,7 +7,15 @@ Fileder {
'name: alpha': 'meta',
'title: text/plain': 'about mmm',
'moon -> 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.",
+ "All modules are 'polymorphic' - they can run in the ", (b 'browser'),
+ ", using the native browser API for creating and interacting with DOM content, as well as on the ",
+ (b 'server'), ", where they operate on and produce equivalent HTML strings."
+ p "As the two implementations of each module are designed to be compatible,
+ mmm facilitates code and content sharing between server and client
+ and enables serverside rendering and rehydration."
ul for child in *@children
name = child\gett 'name: alpha'
desc = child\gett 'description: mmm/dom'
diff --git a/root/meta/mmm_dom.moon b/root/meta/mmm_dom.moon
index 13ce257..35d60c0 100644
--- a/root/meta/mmm_dom.moon
+++ b/root/meta/mmm_dom.moon
@@ -26,10 +26,10 @@ source = do
Fileder {
'name: alpha': 'mmm.dom'
- 'description: mmm/dom': span mmmdom!, ' documentation'
+ 'description: mmm/dom': 'a lightweight DSL for creating HTML documents',
'mmm/dom': article {
h1 mmmdom!
- p mmmdom!, " is a DSL for creating HTML documents in Lua and Moonscript."
+ p mmmdom!, " is a lightweight DSL for creating HTML documents in Lua and Moonscript."
p do
fengari = a "fengari.io", href: '//fengari.io'
diff --git a/root/meta/test_component.moon b/root/meta/test_component.moon
index be44890..381302c 100644
--- a/root/meta/test_component.moon
+++ b/root/meta/test_component.moon
@@ -2,7 +2,7 @@ import define_fileders from require 'mmm.mmmfs'
Fileder = define_fileders ...
Fileder {
- 'name: alpha': 'mmm.component_test'
+ 'name: alpha': 'test_mmm.component'
'description: text/plain': 'Tests for mmm.component'
'moon -> mmm/dom': =>
import article, div, h1, ul, li, pre from require 'mmm.dom'