I want to load a local web page into WebKit.WebView. Is it possible to use the .load_uri
instance method to load a local HTML page bundled as a resource like so:
webView.load_uri("resource:///res/path/web_view_demo/web/index.html")
So far, the only way I was able to load it is by first extracting the markup in string format and using webView.load_html
.
Even then, I’m unable to load static assets such as images bundled as resource. It is only possible when I embed the image as data URL. I guess my question is whether there is a way of loading markup bundled as resource and is it possible to load images bundled as resource into the loaded web page.