urbit/ren/tree/body.hoon

26 lines
514 B
Plaintext
Raw Normal View History

2016-02-10 06:25:32 +03:00
::
:::: /hoon/body/tree/ren
::
2016-02-18 02:25:53 +03:00
/? 310
2016-02-10 06:25:32 +03:00
/= dat /% /tree-json/ :: default include
/= dat-sen /| /: /%%/ /% /tree-json/ :: default include
/~ ~
==
2016-12-03 02:47:16 +03:00
=, format
=, html
2017-08-07 23:17:22 +03:00
::
|%
++ script-safe
!.
|= a/tape ^- tape
?~ a a
?. ?=({$'<' $'/' *} a) [i.a $(a t.a)]
['<' '\\' '/' $(a t.t.a)]
--
::
2016-02-10 06:25:32 +03:00
^- marl
2017-10-31 04:13:06 +03:00
=/ tree (script-safe (en-json (pairs:enjs data+dat sein+dat-sen ~)))
2016-12-03 02:47:16 +03:00
;= ;script(type "text/javascript"): window.tree = {tree}
2016-03-13 01:34:55 +03:00
;div#tree;
2016-02-10 06:25:32 +03:00
==