-
-
Notifications
You must be signed in to change notification settings - Fork 136
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.js incompatibilities #509
Comments
@vojtechkral Thank you for the detailed report. For the first case, I might keep the behaviour for backward-compatibility. May I know your use case for For the second case, I'm going to seek if we can support both syntax. |
@sunng87 thank you!
TBH I don't remember, but I think it was a mistake... |
Awesome, thank you! |
Thank you. I will create a release soon. |
I've ran into two subtle incompatibilities with the reference implementation
I was accidentally using expression in the shape
{{ (helper variable) }}
. This syntax is rejected by hbs.js, with hbs-rust it's not rejected and somehow the (string) result of thathelper variable
expression gets interpreted - when the string contains names of helpers, it will try to evaluate them.I found out about this by getting a strange error from inside the
ne
helper when the string returned byhelper variable
contained the word"ne"
.Whitespace ellision with raw expressions:
hbs-rust uses the syntax
{{{~ foo ~}}}
but hbs.js rejects that and instead uses{{~{ foo }~}}
... It looks weird but that's what they use...The text was updated successfully, but these errors were encountered: