2015-02-14 06:43:17 +03:00
|
|
|
::
|
2015-06-05 03:27:01 +03:00
|
|
|
:::: /hoon/urb/mar
|
2015-02-14 06:43:17 +03:00
|
|
|
::
|
|
|
|
/? 314
|
2016-02-10 06:25:32 +03:00
|
|
|
/= urb-wasp-data-js /: /%/wasp-data /js/
|
2015-02-14 06:43:17 +03:00
|
|
|
!:
|
2016-02-10 06:25:32 +03:00
|
|
|
|_ [[dep=@uvH hed=marl] [dep-bod=@uvH bod=marl]]
|
|
|
|
++ linked-deps-js
|
2016-02-10 03:14:40 +03:00
|
|
|
'''
|
|
|
|
urb.waspAll = function(sel){
|
2016-02-10 06:25:32 +03:00
|
|
|
[].map.call(document.querySelectorAll(sel), urb.waspElem)
|
2016-02-10 03:14:40 +03:00
|
|
|
}
|
|
|
|
if(urb.wasp){urb.waspAll('script'); urb.waspAll('link')}
|
|
|
|
'''
|
2015-02-14 06:43:17 +03:00
|
|
|
++ grow :: convert to
|
|
|
|
|%
|
|
|
|
++ mime [/text/html (taco html)] :: convert to %mime
|
2016-02-10 03:14:40 +03:00
|
|
|
++ html (crip (poxo hymn)) :: convert to %html
|
|
|
|
++ hymn :: inject dependencies
|
|
|
|
^- manx
|
2016-02-10 06:25:32 +03:00
|
|
|
;html
|
|
|
|
;head
|
|
|
|
;meta(charset "utf-8", urb_injected "");
|
|
|
|
;* ?~ dep ~
|
|
|
|
:~ ;script@"/~/on/{<dep>}.js"(urb_injected "");
|
|
|
|
;script(urb_injected "")
|
|
|
|
;- (trip urb-wasp-data-js)
|
|
|
|
;- "urb.waspData({(pojo %s (scot %uv dep-bod))})"
|
|
|
|
==
|
|
|
|
==
|
|
|
|
;* hed
|
|
|
|
==
|
|
|
|
;body
|
|
|
|
;* bod
|
|
|
|
;script(urb_injected ""):"{(trip linked-deps-js)}"
|
2016-02-10 03:14:40 +03:00
|
|
|
==
|
2016-02-10 06:25:32 +03:00
|
|
|
==
|
2015-02-14 06:43:17 +03:00
|
|
|
--
|
|
|
|
++ grab
|
|
|
|
|% :: convert from
|
2016-02-10 03:14:40 +03:00
|
|
|
++ noun ,[@uvH manx] :: clam from %noun
|
2015-02-14 06:43:17 +03:00
|
|
|
--
|
|
|
|
--
|