diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-10-26 11:30:58 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-10-26 11:30:58 +0000 |
| commit | 6a30fbd239b31e293c0833c2bbcbb8def44707f1 (patch) | |
| tree | 1c6501c3d36f4b09ac5648e44026fd224ccf19c6 /root/articles/mmmfs/examples/image | |
| parent | fix bug in deep_tostring (diff) | |
| download | mmm-6a30fbd239b31e293c0833c2bbcbb8def44707f1.tar.gz mmm-6a30fbd239b31e293c0833c2bbcbb8def44707f1.zip | |
mmmfs cleanup
Diffstat (limited to 'root/articles/mmmfs/examples/image')
3 files changed, 7 insertions, 0 deletions
diff --git a/root/articles/mmmfs/examples/image/URL -> image$png b/root/articles/mmmfs/examples/image/URL -> image$png new file mode 100644 index 0000000..c586722 --- /dev/null +++ b/root/articles/mmmfs/examples/image/URL -> image$png @@ -0,0 +1 @@ +https://picsum.photos/200?random diff --git a/root/articles/mmmfs/examples/image/preview: text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/examples/image/preview: text$moonscript -> fn -> mmm$dom.moon new file mode 100644 index 0000000..6c431d0 --- /dev/null +++ b/root/articles/mmmfs/examples/image/preview: text$moonscript -> fn -> mmm$dom.moon @@ -0,0 +1,5 @@ +import img from require 'mmm.dom' + +-- look for main content with 'URL to png' type +-- and wrap in an mmm/dom image tag +=> img src: @gett 'URL -> image/png' diff --git a/root/articles/mmmfs/examples/image/title: text$plain b/root/articles/mmmfs/examples/image/title: text$plain new file mode 100644 index 0000000..60a556f --- /dev/null +++ b/root/articles/mmmfs/examples/image/title: text$plain @@ -0,0 +1 @@ +Hey I'm like a link to a picture or smth |
