New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handlebars.default results in errors in IE8 #824
Comments
Where are you seeing this? |
I have this issue too. I'm using browserify with hbsfy to compile my hbs templates. The resulting source generates the something.default, which leads to an error. It happens when you pre-compile the templates. |
@kpdecker if you want I can setup an example? |
I see this whenever I use the dot notation to access default. Using square
|
Specifically if I attempt to create a helper.
|
@parris if you're using Gulp.js, I use .pipe(replace(".default.", "['default'].")) |
Yes, For the hbsfy specific issue, you'll need to raise that with that specific project. |
Released in v2.0.0-beta.1 |
Basically you need to use
Handlebars['default']
to be safe not to break every browser.default
is a reserved word in JS. It might be a) either worth mentioning in the docs or b) worth renaming.The text was updated successfully, but these errors were encountered: