aboutsummaryrefslogtreecommitdiffstats
path: root/root/sandbox/lua
diff options
context:
space:
mode:
Diffstat (limited to 'root/sandbox/lua')
-rw-r--r--root/sandbox/lua/description: text$markdown.md1
-rw-r--r--root/sandbox/lua/text$lua -> mmm$dom.lua10
2 files changed, 11 insertions, 0 deletions
diff --git a/root/sandbox/lua/description: text$markdown.md b/root/sandbox/lua/description: text$markdown.md
new file mode 100644
index 0000000..3071697
--- /dev/null
+++ b/root/sandbox/lua/description: text$markdown.md
@@ -0,0 +1 @@
+an example of how to use Lua to create (dynamic) DOM / mmmfs content
diff --git a/root/sandbox/lua/text$lua -> mmm$dom.lua b/root/sandbox/lua/text$lua -> mmm$dom.lua
new file mode 100644
index 0000000..db420ce
--- /dev/null
+++ b/root/sandbox/lua/text$lua -> mmm$dom.lua
@@ -0,0 +1,10 @@
+-- see /meta/mmm.dom for documentation
+local d = require 'mmm.dom'
+
+local lua = d.a { 'Lua', href = 'https://www.lua.org/' }
+local fengari = d.a { 'fengari.io', href = 'https://fengari.io/' }
+
+return d.article {
+ d.h1 'Lua',
+ d.p { lua, ' is fully supported using ', fengari, ' on the Client.' }
+}