Eben60
July 27, 2023, 11:26am
1
In am starting to learn Blink.jl, and would like to load a local HTML document into the Blink window.
using Blink
winpath = realpath("html/mainwin.html")
@assert isfile(winpath)
w = Window()
loadurl(w, winpath)
It opens an empty Blink window, returns
julia>
Dict{String, Any}()
but doesn’t load my file.
Eben60
July 27, 2023, 2:06pm
2
Reading documentation could help, but didn’t.
load!(w, winpath)
or
importhtml!(w, winpath)
didn’t help either.
Eben60
July 27, 2023, 2:23pm
3
Ok, this way it works:
using Blink
winpath = realpath("html/mainwin.html")
@assert isfile(winpath)
winpathurl = "file://$(winpath)" # that was it
w = Window();
loadurl(w, winpathurl)