mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
13 lines
498 B
Plaintext
13 lines
498 B
Plaintext
/+ tree, react
|
|
/= mime /: /=== /% /^ mime /mime/
|
|
/= body /: /=== /% /elem/
|
|
/= snip /: /=== /% /snip/
|
|
/= meta /: /=== /% /front/
|
|
/= sect /: /=== /% /index/
|
|
!:
|
|
^- tree-include
|
|
=+ rj=react-to-json:react
|
|
=+ fj=|=(atr=(map span span) [%o (~(run by atr) |=(a=span s/a))])
|
|
=+ ij=(map-to-json:tree |=(a=path (crip (spud a))) |=(a=marl [%a (turn a rj)]))
|
|
[mime (rj body) (rj /h1 hed.snip) (rj /div tal.snip) (fj meta) (ij sect)]
|