landscape/desk/lib/reel.hoon

21 lines
390 B
Plaintext
Raw Normal View History

2023-03-21 20:44:21 +03:00
/- reel
|%
++ enjs-metadata
|= =metadata:reel
^- json
=/ fields
%+ turn ~(tap by fields.metadata)
|= [key=cord value=cord]
^- [cord json]
[key s+value]
%- pairs:enjs:format
:~ ['tag' s+tag.metadata]
['fields' (pairs:enjs:format fields)]
==
++ dejs-metadata
%- ot:dejs:format
:~ tag+so:dejs:format
fields+(om so):dejs:format
==
--