title: How to write handlebars template in a javascript file
body: <p>A javascript handlebar template is usually added to the HTML file, it would be easier if we could keep all the templates in the javascript file, any best practices of doing that?</p>
  
  <pre><code>&lt;script id="entry-template" type="text/x-handlebars-template"&gt;
    &lt;h1&gt;{{title}}&lt;/h1&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Edit:</strong> I can write this template using plain Javascript string as well, what are the other options?</p>
  
  <pre><code>var template = '&lt;h1&gt;{{title}}&lt;/h1&gt;';
  </code></pre>