Handlebars Not Working In Production After Link Click
I am using handlebars and it is working fine in development. When I upload to github-pages, The handlebars template still works if i open directly to the page. But if I go to a p
Solution 1:
It's fairly clear that the handlebars.js isn't loading, because of the relative path in the script tag:
<scriptsrc="../bower_components/handlebars/handlebars.min.js"></script>
Replace src="" with your favorite CDN location:
For example
<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.min.js"></script>
Solution 2:
I don't think Handlebars works with Github pages. At least mine does not.
Post a Comment for "Handlebars Not Working In Production After Link Click"