This will probably help you to get a solution faster.
For bugs, it would be great to have a PR with a failing test-case.
I'm trying to find minified handlebars v3.0.7 to use on my site. I checked the installation page: http://handlebarsjs.com/installation.html
There I found S3 builds page. But I could only find v3.0.5 for v3.x versions.
I found on jsdelivr and cdnjs v3.0.7, but I don't know which version should I download/link-to in my html page?
https://www.jsdelivr.com/package/npm/handlebars?version=3.0.7&path=dist
https://cdnjs.com/libraries/handlebars.js/3.0.7
Perhaps, since loading libraries in browsers is still a thing 馃槅, it could be written somewhere in the documentation?
Thanks!
I would use https://cdn.jsdelivr.net/npm/handlebars@3/dist/handlebars.min.js or https://cdn.jsdelivr.net/npm/handlebars@3/dist/handlebars.runtime.min.js depending on whether you need the compiler of just the runtime. Using "3" as version will get you the latest 3.x version. but you can use "3.0.7", too.
Something must have gone wrong with the build so that they have not been uploaded to AWS.
I actually wasn't aware that loading libraries in the browser is still a thing and for production setup, you should really use webpack, parcel or browserify to load you templates and the runtime.
If you would like to add a PR for updating the documentation in that respect, you are welcome to do that here: https://handlebars-draft.knappi.org/topics/installation.html#javascript-browser
Maybe replace the "Download Handlebars 4.1.2" by a "latest" and "legacy" download for "Runtime+Compiler" and "Runtime".
Thanks @nknapp!
I didn't know the difference between handlebars.min.js and handlebars.runtime.min.js. I'm pretty sure I don't need the compiler, but just the runtime on my website.
Thanks again! I'll close this issue as it's been solved.
I'll reopen this as a reminder to add docs
@nknapp it looks like you made that compile/runtime distinction already in https://github.com/handlebars-lang/docs/commit/1e2930254e37f17559d0e0104baecce5a2d473d8
Looks nice... Should this issue be closed?
The issue for the docs is that there is no download-link for the 3.x version. But I'll move this issuce over to the docs (if I can).
Update: I can't.
Changes to the download-link can be made here: https://github.com/handlebars-lang/docs/blob/master/src/.vuepress/components/DownloadHandlebars.vue
Oh, ok you mean like just a "Download Previous Version" section after that one? https://handlebarsjs.com/installation/#latest-release-version-handlebarsversions-latest
Also, getting 403 Unauthorized trying to open S3 https://com.s3.amazonaws.com/builds.handlebarsjs/bucket-listing.html?sort=lastmod&sortdir=desc
Also, tried hitting https://s3.amazonaws.com/builds.handlebarsjs.com/handlebars-v3.0.7.js and get 'The specified key does not exist.' ... but cloud flare works ok https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.7/handlebars.js
For some reason, the following URL does not work:
https://com.s3.amazonaws.com/builds.handlebarsjs/bucket-listing.html?sort=lastmod&sortdir=desc
while the corresponding URL on
http://builds.handlebarsjs.com.s3.amazonaws.com/bucket-listing.html?sort=lastmod&sortdir=desc
does work. But with the second version, we don't get https...
Ah, I see: The URL should be
http://s3.amazonaws.com/builds.handlebarsjs.com/bucket-listing.html?sort=lastmod&sortdir=desc
but bucket-listing.html contains a javascript that still uses the wrong endpoint to load the listing data. I have to see if I can upload a new one.