title: Easy way to load local html file in electron
body: <p>I've been trying to convert a small webapp into an electron application. It's working perfectly, except I need to load a bunch of files (.html) into the main DOM. In the webapp, I just used <code>$.get</code>, but how can I do it in electron? I try looking at the DOC but I cannot find an easy way to do that, beside an IPC pipe (and I don't quite get it).</p>
  
  <p>Could anyone point me to the right direction?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'll clarify here. I have a main process that start a BrowserWindow</p>
  
  <pre><code>mainWindow = new BrowserWindow({width: 800, height: 600})
  </code></pre>
  
  <p>and then, in a <code>js</code> file imported via a <code>&lt;script&gt;</code> tag, I want to get load and attach some file inside a dialog:</p>
  
  <pre><code>$('.dialog').load('pages/hello.html', {})
  </code></pre>
  
  <p>Kind regards</p>