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
Actually, we have to compile coffeescript at compile time into valid coffeescript while still allowing for variable insertion. The variable insertion syntax is illegal so it is escaped with coffeescript's backticks. However, inside a string (quotes) it is perfectly legal.
I would like to avoid writing my own coffeescript compiler, but I see 2 solutions 2 this neither of which seem horribly difficult.
first check to see if there is any variable interpolation
The following CoffeeScript fails to compile:
addJulius [coffee|( # That's a wrap alert "Hi")|]
Take out the quote, or add one, and it works.
The text was updated successfully, but these errors were encountered: