shrub/mar/react-snip.hoon

32 lines
852 B
Plaintext
Raw Normal View History

2015-02-05 01:59:15 +03:00
::
:::: /hoon/core/react-snip/mar
::
/? 314
2015-05-20 06:29:04 +03:00
/+ react
2015-02-05 01:59:15 +03:00
!:
::::
::
2015-09-02 03:24:18 +03:00
[. react]
2015-07-31 01:51:31 +03:00
|_ [hed=marl tal=marl]
2015-02-05 01:59:15 +03:00
::
++ grow :: convert to
|%
2015-08-06 05:13:41 +03:00
++ mime [/application/json (tact tape)]
++ tape (pojo react-snips-json)
2015-07-31 01:51:31 +03:00
++ elem ;div:(h1:"*{hed}" div:"*{tal}")
++ react-snip-js (crip (react-to-tape elem))
++ react-snips-json
2015-04-23 03:43:52 +03:00
::?> ?=([[%div ~] [[%h1 ~] *] [[%div ~] *] ~]] own) :: xx mystery fish-loop
%^ jobe
2015-08-06 05:13:41 +03:00
head/react-head-json
body/react-snip-json
2015-04-23 03:43:52 +03:00
~
2015-08-06 05:13:41 +03:00
::
++ react-head-json (react-to-json ;h1:"*{hed}")
++ react-snip-json (react-to-json ;div:"*{tal}")
2015-02-05 01:59:15 +03:00
--
++ grab |% :: convert from
++ noun manx :: clam from %noun
2015-07-31 01:51:31 +03:00
++ snip |=(a=[marl marl] a)
2015-02-05 01:59:15 +03:00
-- --