shrub/tree-gen/tree-include.hook

12 lines
431 B
Plaintext
Raw Normal View History

2015-08-12 00:31:16 +03:00
/+ tree, react
/= body /: /=== /% /elem/
/= snip /: /=== /% /snip/
/= meta /: /=== /% /front/
/= sect /: /=== /% /index/
!:
2015-08-04 02:49:34 +03:00
^- tree-include
2015-08-12 00:31:16 +03:00
=+ rj=react-to-json
=+ fj=|=(atr=(map span span) [%o (~(run by atr) |=(a=span s/a))])
=+ ij=(map-to-json |=(a=path (crip (spud a))) |=(a=marl [%a (turn a rj)]))
[(rj body) (rj /h1 hed.snip) (rj /div tal.snip) (fj meta) (ij sect)]