mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +03:00
cae52a68cd
The "depends last" refactor had broken partial page reloading
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
::
|
|
:::: /hoon/urb/mar
|
|
::
|
|
/? 310
|
|
/= urb-wasp-data-js /: /%/wasp-data /js/
|
|
!:
|
|
|_ {{dep/@uvH hed/marl} {dep-bod/@uvH bod/marl}}
|
|
++ grow :: convert to
|
|
|%
|
|
++ mime [/text/html (taco html)] :: convert to %mime
|
|
++ html (crip (poxo hymn)) :: convert to %html
|
|
++ hymn :: inject dependencies
|
|
^- manx
|
|
;html
|
|
;head
|
|
;meta(charset "utf-8", urb_injected "");
|
|
;* hed
|
|
==
|
|
;body
|
|
;* bod
|
|
;* ?~ dep ~
|
|
:~ ;script@"/~/on/{<dep>}.js"(urb_injected "", async "", onload "setTimeout(urb.onDep,2000)");
|
|
;script(urb_injected "")
|
|
;- (trip urb-wasp-data-js)
|
|
; urb.waspWait = []
|
|
; urb.wasp = urb.wasp || [].push.bind(urb.waspWait)
|
|
; urb.onDep = function()\{
|
|
; urb.waspWait.map(urb.wasp)
|
|
; urb.onLoadUrbJS()
|
|
; urb.waspData({(pojo %s (scot %uv dep-bod))})
|
|
; }
|
|
==
|
|
==
|
|
==
|
|
==
|
|
--
|
|
++ grab
|
|
|% :: convert from
|
|
++ noun {@uvH manx} :: clam from %noun
|
|
--
|
|
--
|