mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
fix examples, remove mdy, react marks
This commit is contained in:
parent
ca1502ed77
commit
0c473d2083
@ -20,6 +20,7 @@
|
||||
::
|
||||
++ grow :: convert into
|
||||
|%
|
||||
++ front ?~(don ~ ?:(?=(%meta -.i.don) p.i.don front(don t.don)))
|
||||
++ hymn :: convert to %hymn
|
||||
;html
|
||||
;head:title:"Untitled"
|
||||
|
@ -20,4 +20,5 @@
|
||||
(end 3 (dec (met 3 -)) -)
|
||||
--
|
||||
++ grad %txt
|
||||
++ garb %down
|
||||
--
|
||||
|
22
mar/mdy.hoon
22
mar/mdy.hoon
@ -1,22 +0,0 @@
|
||||
::
|
||||
:::: /hoon/core/mdy/pro
|
||||
::
|
||||
/? 314
|
||||
/+ frontmatter
|
||||
!:
|
||||
|_ [atr=(map cord cord) mud=@t]
|
||||
++ grow
|
||||
|%
|
||||
++ front atr
|
||||
++ mime [/text/x-markdown (taco md)]
|
||||
++ md (role txt)
|
||||
++ txt (print:frontmatter atr (lore mud))
|
||||
--
|
||||
++ grab
|
||||
|%
|
||||
++ noun ,[(map cord cord) @t]
|
||||
++ md (cork lore txt)
|
||||
++ txt parse:frontmatter
|
||||
--
|
||||
++ grad %txt
|
||||
--
|
@ -7,17 +7,8 @@
|
||||
::
|
||||
|_ jon=json
|
||||
::
|
||||
++ grow :: convert to
|
||||
|%
|
||||
++ mime [/text/'paste-new+json' (taco txt)] :: convert to %mime
|
||||
++ txt (crip (pojo jon))
|
||||
--
|
||||
++ grab
|
||||
|% :: convert from
|
||||
:: ++ mime |=([p=mite q=octs] (fall (rush (,@t q.q) apex:poja) *json))
|
||||
++ noun json :: clam from %noun
|
||||
++ numb jone
|
||||
++ time jode
|
||||
--
|
||||
++ grad %mime
|
||||
++ grow |% ++ mime :: convert to %mime
|
||||
[/text/'paste-new+json' (tact (pojo jon))]
|
||||
--
|
||||
++ grab |% ++ noun json :: clam from %noun
|
||||
-- --
|
||||
|
@ -1,31 +0,0 @@
|
||||
::
|
||||
:::: /hoon/core/react-snip/mar
|
||||
::
|
||||
/? 314
|
||||
/+ react
|
||||
!:
|
||||
::::
|
||||
::
|
||||
[. react]
|
||||
|_ [hed=marl tal=marl]
|
||||
::
|
||||
++ grow :: convert to
|
||||
|%
|
||||
++ mime [/application/json (tact tape)]
|
||||
++ tape (pojo react-snips-json)
|
||||
++ elem ;div:(h1:"*{hed}" div:"*{tal}")
|
||||
++ react-snip-js (crip (react-to-tape elem))
|
||||
++ react-snips-json
|
||||
::?> ?=([[%div ~] [[%h1 ~] *] [[%div ~] *] ~]] own) :: xx mystery fish-loop
|
||||
%^ jobe
|
||||
head/react-head-json
|
||||
body/react-snip-json
|
||||
~
|
||||
::
|
||||
++ react-head-json (react-to-json ;h1:"*{hed}")
|
||||
++ react-snip-json (react-to-json ;div:"*{tal}")
|
||||
--
|
||||
++ grab |% :: convert from
|
||||
++ noun manx :: clam from %noun
|
||||
++ snip |=(a=[marl marl] a)
|
||||
-- --
|
@ -1,23 +0,0 @@
|
||||
::
|
||||
:::: /hoon/core/react/mar
|
||||
::
|
||||
/? 314
|
||||
/+ react
|
||||
!:
|
||||
::::
|
||||
::
|
||||
[. react]
|
||||
|_ own=manx
|
||||
::
|
||||
++ grow :: convert to
|
||||
|%
|
||||
++ tape (pojo react-json)
|
||||
++ react-js (crip (react-to-tape own))
|
||||
:: ++ js react-js :: convert to %js
|
||||
++ react-json (react-to-json own)
|
||||
++ mime [/application/json (tact tape)] :: convert to %mime
|
||||
--
|
||||
++ grab |% :: convert from
|
||||
++ noun manx :: clam from %noun
|
||||
++ elem |= a=manx a
|
||||
-- --
|
@ -3,7 +3,7 @@
|
||||
:::: /hook/hymn/match
|
||||
::
|
||||
/= gas /$ fuel :: get request info
|
||||
/= src /: /%/ /hook/ :: current source file
|
||||
/= src /: /%/ /hoon/ :: current source file
|
||||
::
|
||||
:::: ~sondel-forsut
|
||||
::
|
||||
|
@ -1,4 +1,4 @@
|
||||
/= all /; flop /^ (list (pair time ,*)) /: /%%/ /& /mime/
|
||||
/= all /; flop /^ (list (pair time ,*)) /& /mime/
|
||||
;html
|
||||
;head:title:"Pastebin"
|
||||
;body
|
||||
|
@ -3,12 +3,12 @@
|
||||
:::: /hook/hymn/unparse/pub
|
||||
::
|
||||
/= gas /$ fuel
|
||||
/= src /: /%%/mear /hoon/
|
||||
/= src2 /: /%/ /hook/
|
||||
/= src /: /%/mear /hoon/
|
||||
/= src2 /: /%/ /hoon/
|
||||
::
|
||||
:::: ~sondel-forsut
|
||||
::
|
||||
// /%%/mear
|
||||
// /%/mear
|
||||
!:
|
||||
::::
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user