twee2
twee2 copied to clipboard
Scripts in [haml] passages escaping all quotes
Definitely enjoying using Twee2 so far, but I'm having issues with some of the parsing. Any string literals in :javascript
or :coffeescript
HAML filters are having their quotes escaped. Using the example code on the Twee2 docs, this:
:coffeescript
$ ->
alert "This message will appear when you reach Nick's Bar!"
becomes this, after build
ing:
$(function() {
return alert("This message will appear when you reach Nick's Bar!");
});
The browser is obviously unhappy about it!