mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 01:08:54 +03:00
28 lines
788 B
Plaintext
28 lines
788 B
Plaintext
::
|
|
:::: /hoon/core/react-snip/mar
|
|
::
|
|
/? 314
|
|
/+ react
|
|
!:
|
|
::::
|
|
::
|
|
|_ own=manx
|
|
::
|
|
++ grow :: convert to
|
|
|%
|
|
++ tape (react-to-tape own)
|
|
++ react-snip-js (crip tape)
|
|
++ react-snip-json
|
|
::?> ?=([[%div ~] [[%h1 ~] *] [[%div ~] *] ~]] own) :: xx mystery fish-loop
|
|
%^ jobe
|
|
head/(jape tape(own &2.own))
|
|
body/(jape tape(own &3.own))
|
|
~
|
|
:: ++ js react-snip-js :: convert to %js
|
|
++ mime [/text/javascript (taco react-snip-js)] :: convert to %mime
|
|
--
|
|
++ grab |% :: convert from
|
|
++ noun manx :: clam from %noun
|
|
++ snip |= a=manx a
|
|
-- --
|