mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 20:47:27 +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)
|
||
|
==
|
||
|
--
|
||
|
--
|