I’m trying to develop an Electron application that supports a basic plugin architecture. The
main.js process loads a basically empty page, except for some kind of header section for title and a drop-down menu for each plugin.
Each plugin has its own
renderer.js file, configuration data etc. It also provides the necessary HTML to display the
div#plugin-container. I’m hoping to have the renderer process load the HTML fragment into the existing web page inside the aforementioned div.
win.loadURL() is for the
main.js only and it loads an HTML to fill in the whole window. I’m looking to load a fragment into an existing page. jQuery has the
$('div#plugin-container').load() method that would do what I need, but it’s loading HTML from a server only, as far as I can see.