First you need to install handlebars with node by running this command. If you don’t have node, go ahead and install it first. It’s really quick and painless.
Then put all of your handlebars templates inside js/templates with the extension handlebars. So for example a file named booksList.handlebars would be the booksList template. Inside these files you don’t need the script tag that you would normally need if you included the template inside your html page. So instead of this:
It would just look like this:
Then in your html, all you have to include is that one file plus handlebars:
You can now just use it like this: