HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
437 stars 77 forks source link

How to include js scripts? #248

Closed GilmarCorreia closed 3 years ago

GilmarCorreia commented 3 years ago

Hello Threepenny-gui team,

Is there any way to include customized js scripts? Like require.js and others?

Thank you.

GilmarCorreia commented 3 years ago

I've found:

scptRequire <- UI.loadFile "application/javascript" "scripts/require.js"
require <- mkElement "script" # set UI.src scptRequire 

getBody window #+ [element require]