urbit/mar/downy.hoon

35 lines
858 B
Plaintext
Raw Normal View History

2015-07-18 02:30:34 +03:00
::
:::: /hoon/down/mar
::
/? 314
/- markdown
2015-07-18 02:30:34 +03:00
/+ down-jet
::
::::
::
[markdown .]
2015-07-18 02:30:34 +03:00
|_ [atr=(map cord cord) don=down]
++ grab :: convert from
|%
++ mdy |=([atr=_atr src=@t] [atr (mark:down-jet src)])
++ noun ,[(map cord cord) down] :: clam from %noun
--
::
++ grow :: convert into
|%
++ hymn :: convert to %hymn
;html
;head:title:"Untitled"
;body ;* +:elem
==
==
++ elem :: convert to %elem
=+ jon=`json`o/(~(run by atr) |=(cord s/+<))
;div
;* :- ;meta(value "{(pojo jon)}", name "frontmatter", urb_front "");
(print:down-jet don)
==
:: ++ react elem
--
--