You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it has to do with caching. Since the "civet coffeeInterpolation" prologue directive changes the behavior of strings if it is followed by a string it may be parsed and cached. I'd prefer to not add strings to the non-cached list since that could affect parsing performance throughout the whole file.
Fine tuning the directive prologue parsing to only check for simple strings may fix this.
It may be an open question whether we should mangle top level directive prologues. In this case "Hello #{name}!" is parsed as a JS prologue in the spec and probably shouldn't be interpolated no matter what civet config options are specified.
compiles to
"Hello #{name}!"
(incorrect)compiles to
console.log(`Hello ${name}`)
(correct)The text was updated successfully, but these errors were encountered: