-
-
Notifications
You must be signed in to change notification settings - Fork 155
Closed
Labels
Description
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 variableexpression 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 thenehelper when the string returned byhelper variablecontained 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...