twee2 icon indicating copy to clipboard operation
twee2 copied to clipboard

Scripts in [haml] passages escaping all quotes

Open thely opened this issue 8 years ago • 0 comments

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 building:

$(function() {
    return alert("This message will appear when you reach Nick's Bar!");
  });

The browser is obviously unhappy about it!

thely avatar Aug 19 '16 00:08 thely