mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 05:41:43 +03:00
37 lines
504 B
Plaintext
37 lines
504 B
Plaintext
|
/- sur=hark-group-hook
|
||
|
/+ resource
|
||
|
^?
|
||
|
=< [. sur]
|
||
|
=, sur
|
||
|
|%
|
||
|
::
|
||
|
++ dejs
|
||
|
=, dejs:format
|
||
|
|%
|
||
|
::
|
||
|
++ action
|
||
|
%- of
|
||
|
:~ listen+dejs-path:resource
|
||
|
ignore+dejs-path:resource
|
||
|
==
|
||
|
--
|
||
|
::
|
||
|
++ enjs
|
||
|
=, enjs:format
|
||
|
|%
|
||
|
::
|
||
|
++ res
|
||
|
(cork enjs-path:resource (lead %s))
|
||
|
++ update
|
||
|
|= upd=^update
|
||
|
%+ frond -.upd
|
||
|
?- -.upd
|
||
|
%initial
|
||
|
:- %a
|
||
|
(turn ~(tap in watching.upd) res)
|
||
|
::
|
||
|
?(%listen %ignore) (res group.upd)
|
||
|
==
|
||
|
--
|
||
|
--
|