mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
26 lines
607 B
Plaintext
26 lines
607 B
Plaintext
::
|
|
:::: /hoon/combine/tree/ren
|
|
::
|
|
/? 314
|
|
/- tree-include
|
|
/+ react
|
|
/= mime /mime/
|
|
/= body /tree-elem/
|
|
/= sect /&json&/tree-index/
|
|
/= snip /&snip&elem&/tree-elem/
|
|
/= meta /&json&front&/|(/front/ /~[~])
|
|
/= comt /^ (list (pair time manx))
|
|
/: /%/comments /@ /&elem&/md/
|
|
!:
|
|
^- tree-include
|
|
=+ 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
|
|
meta
|
|
sect
|
|
[%a (turn (sort comt |=({a/* b/*} (lor b a))) cj)]
|
|
==
|