summaryrefslogtreecommitdiff
path: root/desk/mar/sh.hoon
blob: fe010d99d5548ab9ba8fd13f21f4ea1c3401e282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
::
::::  /hoon/js/mar
  ::
/?    310
::
=,  eyre
|_  mud=@
++  grow
  |%
  ++  mime  [/application/javascript (as-octs:mimes:html (@t mud))]
  ++  hymn                                          ::  convert to %hymn
    |^  html
    ++  script  ;script
                    ;-  (trip (@t mud))
                ==
    ++  html    ;html:(head:"{script}" body)
    --
  --
++  grab
  |%                                                    ::  convert from
  ++  mime  |=([p=mite q=octs] (@t q.q))
  ++  noun  cord                                        ::  clam from %noun
  --
++  grad  %mime
--