title: Passing an object to an ejs loader, using html-webpack-plugin
body: <p>I believe I've looked everywhere, but I've come up empty handed.
  I've been using <code>html-webpack-plugin</code> to load a single <code>index.html</code> file from my source, but my client has come with some localisations, and I thought it would be great if I could add them dynamically.</p>
  
  <p>So I'm trying to switch over to using a templating engine with <code>html-webpack-plugin</code>, namely <code>ejs</code>, but I'm having major problems!</p>
  
  <p>I want <code>html-webpack-plugin</code> to render and <code>.ejs</code> file, and I need to give said <code>.ejs</code> file a huge object of localisations.</p>
  
  <p>I want something like this:</p>
  
  <pre><code>&lt;h1&gt;&lt;%= header.title %&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>Coming from a localisation <code>.json</code>-file like this:</p>
  
  <pre><code>{
    "header": {
      "title": "My Clients Super Awesome Website"
    }
  }
  </code></pre>
  
  <p>I've tried using two different ejs webpack loaders, and I simply can't figure out how to pass a simple object to the ejs loader, that I can use in my ejs file.</p>
  
  <p>Hope you guys have some answers :D Thanks in advance.</p>