fix examples, remove mdy, react marks

This commit is contained in:
Anton Dyudin 2016-01-06 12:52:30 -08:00
parent ca1502ed77
commit 0c473d2083
10 changed files with 12 additions and 95 deletions

View File

@ -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"

View File

@ -20,4 +20,5 @@
(end 3 (dec (met 3 -)) -)
--
++ grad %txt
++ garb %down
--

View File

@ -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
--

View File

@ -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
-- --

View File

@ -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)
-- --

View File

@ -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
-- --

View File

@ -3,7 +3,7 @@
:::: /hook/hymn/match
::
/= gas /$ fuel :: get request info
/= src /: /%/ /hook/ :: current source file
/= src /: /%/ /hoon/ :: current source file
::
:::: ~sondel-forsut
::

View File

@ -1,4 +1,4 @@
/= all /; flop /^ (list (pair time ,*)) /: /%%/ /& /mime/
/= all /; flop /^ (list (pair time ,*)) /& /mime/
;html
;head:title:"Pastebin"
;body

View File

@ -3,12 +3,12 @@
:::: /hook/hymn/unparse/pub
::
/= gas /$ fuel
/= src /: /%%/mear /hoon/
/= src2 /: /%/ /hook/
/= src /: /%/mear /hoon/
/= src2 /: /%/ /hoon/
::
:::: ~sondel-forsut
::
// /%%/mear
// /%/mear
!:
::::
::