urbit/main/mar/hoon/door.hook

32 lines
715 B
Plaintext
Raw Normal View History

2015-02-27 09:35:41 +03:00
::
:::: /hook/door/hook/mar
::
/? 314
!:
|_ own=@t
::
++ grow :: convert to
~& hoon=(met 3 own)
2015-02-27 09:35:41 +03:00
|%
++ mime `^mime`[/text/hoon (taco own)] :: convert to %mime
2015-02-27 09:35:41 +03:00
++ psal ;div:(pre:"{(trip own)}") :: convert to %html
++ hymn ;html:(head:title:"Source" "+{psal}")
++ txt
(lore (cat 3 own '\0a'))
--
++ grab
|% :: convert from
++ mime |=([p=mite q=octs] q.q)
++ noun ,@t :: clam from %noun
++ txt
2015-02-27 09:35:41 +03:00
|= wan=wain
^- @t
=+ (role wan)
(end 3 (dec (met 3 -)) -)
--
++ grad
|%
++ sted %txt
--
--