urbit/ren/tree/combine.hoon

25 lines
577 B
Plaintext
Raw Normal View History

2016-02-05 05:57:44 +03:00
::
2016-02-05 06:05:37 +03:00
:::: /hoon/combine/tree/ren
2016-02-05 05:57:44 +03:00
::
2016-02-05 03:10:21 +03:00
/- tree-include
/+ react
/= mime /mime/
/= body /tree-elem/
2016-02-05 03:10:21 +03:00
/= sect /&json&/tree-index/
/= snip /&snip&elem&/tree-elem/
2016-02-05 03:10:21 +03:00
/= meta /&json&front&/|(/front/ /~[~])
/= comt /^ (list (pair time manx))
2016-02-10 06:58:52 +03:00
/: /%/comments /@ /&elem&/md/
2015-08-12 00:31:16 +03:00
!:
2015-08-04 02:49:34 +03:00
^- tree-include
2015-09-02 03:24:18 +03:00
=+ rj=react-to-json:react
=+ cj=|=([a=time b=manx] (jobe time/(jode a) body/(rj b) ~))
:* mime
(rj body)
(rj /h1 hed.snip) :: head
(rj /div tal.snip) :: snip
2016-02-05 03:10:21 +03:00
meta
sect
[%a (turn (sort comt lor) cj)]
==