From 9bb005e8084c00c18af77e5795dc62d74b793b47 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 22 Nov 2018 18:44:13 +1100 Subject: start adding content from s-ol.nu --- root/articles/text$moonscript -> fn -> mmm$dom | 18 ------------------ root/articles/text$moonscript -> fn -> mmm$dom.moon | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 root/articles/text$moonscript -> fn -> mmm$dom create mode 100644 root/articles/text$moonscript -> fn -> mmm$dom.moon (limited to 'root/articles') diff --git a/root/articles/text$moonscript -> fn -> mmm$dom b/root/articles/text$moonscript -> fn -> mmm$dom deleted file mode 100644 index 1c04309..0000000 --- a/root/articles/text$moonscript -> fn -> mmm$dom +++ /dev/null @@ -1,18 +0,0 @@ -import div, h3, ul, li, a from require 'mmm.dom' - -=> - div { - h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' }, - ul for child in *@children - name = child\gett 'name: alpha' - desc = child\gett 'description: text/plain' - li { - a name, { - href: child.path, - onclick: (e) => - e\preventDefault! - BROWSER\navigate child.path - }, - ': ', desc - } - } diff --git a/root/articles/text$moonscript -> fn -> mmm$dom.moon b/root/articles/text$moonscript -> fn -> mmm$dom.moon new file mode 100644 index 0000000..1c04309 --- /dev/null +++ b/root/articles/text$moonscript -> fn -> mmm$dom.moon @@ -0,0 +1,18 @@ +import div, h3, ul, li, a from require 'mmm.dom' + +=> + div { + h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' }, + ul for child in *@children + name = child\gett 'name: alpha' + desc = child\gett 'description: text/plain' + li { + a name, { + href: child.path, + onclick: (e) => + e\preventDefault! + BROWSER\navigate child.path + }, + ': ', desc + } + } -- cgit v1.2.3