summaryrefslogtreecommitdiff
path: root/desk/mar/sh.hoon
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-27 22:53:52 +0700
committerpolwex <polwex@sortug.com>2025-06-27 22:53:52 +0700
commit328ebe85135912678bdacd3381126ffd66ef2761 (patch)
tree365962bf45302f2a440f766a4f3c9e0a962dbe47 /desk/mar/sh.hoon
init
Diffstat (limited to 'desk/mar/sh.hoon')
-rw-r--r--desk/mar/sh.hoon25
1 files changed, 25 insertions, 0 deletions
diff --git a/desk/mar/sh.hoon b/desk/mar/sh.hoon
new file mode 100644
index 0000000..fe010d9
--- /dev/null
+++ b/desk/mar/sh.hoon
@@ -0,0 +1,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
+--