title: Using Handlebars in the Browser as an ES6 Module
body: <p>I am trying to use Handlebars in the Browser (client-side script). I am importing a js module templating.js (see below) and want to import the Handlebars library as an ES6 module but can't find any documentation.</p>
  <p>In the example below I was lifting the contents of the following js library as handlebars.js</p>
  <p><a href="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.js" rel="nofollow noreferrer">https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.js</a></p>
  <pre class="lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
  
    &lt;title&gt;Templating&lt;/title&gt;
    &lt;meta name=&quot;description&quot; content=&quot;example showing how to template content&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;templating.css&quot;&gt;
      &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.min.js&quot; integrity=&quot;sha512-zT3zHcFYbQwjHdKjCu6OMmETx8fJA9S7E6W7kBeFxultf75OPTYUJigEKX58qgyQMi1m1EgenfjMXlRZG8BXaw==&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;module&quot; src=&quot;templating.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;header&gt;
    &lt;h1&gt;Templating&lt;/h1&gt;
    &lt;/header&gt;
    &lt;main&gt;
  
    &lt;/main&gt;
    
    
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>
  /* templating.js */
  
  import { Handlebars } from './handlebars.js' // v4.7.6
  
  document.addEventListener('DOMContentLoaded', event =&gt; {
    console.log('DOMContentLoaded')
  })
  </code></pre>
  <p>I'm getting the error: requested module './handlebars.js' does not provide an export named 'Handlebars'</p>
  <p>Does anyone know:</p>
  <ol>
  <li>What handlebars library to use?</li>
  <li>How to import this into my script?</li>
  </ol>
  <p>Any help greatly appreciated...</p>