urbit/ren/tree/combine.hoon
Anton Dyudin 5677254816 move /~date.comments-md to /comments/~date.md
when outputing tree comments
2016-02-09 11:55:43 -08:00

27 lines
638 B
Plaintext

::
:::: /hoon/combine/tree/ren
::
/- 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&mime&/comment-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 lor) cj)]
==