My goal is to put all my Handlebars templates in a single folder, as so:
templates/products.hbs templates/comments.hbs
I found this snippet in
You can read template from External file no need to put html with script tag
$.get('templates/products.hbs', function (data) { var template=Handlebars.compile(data); $(target).html(template(jsonData)); }, 'html')