{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/268","repository_url":"https://api.github.com/repos/jekyll/jekyll-assets","labels_url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/268/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/268/events","html_url":"https://github.com/jekyll/jekyll-assets/issues/268","id":152061776,"number":268,"title":"Scripts containing double curly braces end up corrupted","user":{"login":"JaimeObregon","id":417226,"avatar_url":"https://avatars.githubusercontent.com/u/417226?v=3","gravatar_id":"","url":"https://api.github.com/users/JaimeObregon","html_url":"https://github.com/JaimeObregon","followers_url":"https://api.github.com/users/JaimeObregon/followers","following_url":"https://api.github.com/users/JaimeObregon/following{/other_user}","gists_url":"https://api.github.com/users/JaimeObregon/gists{/gist_id}","starred_url":"https://api.github.com/users/JaimeObregon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaimeObregon/subscriptions","organizations_url":"https://api.github.com/users/JaimeObregon/orgs","repos_url":"https://api.github.com/users/JaimeObregon/repos","events_url":"https://api.github.com/users/JaimeObregon/events{/privacy}","received_events_url":"https://api.github.com/users/JaimeObregon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll-assets/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/jekyll/jekyll-assets/labels/cant-reproduce","name":"cant-reproduce","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-01T00:59:01Z","updated_at":"2016-05-01T14:47:46Z","closed_at":null,"body":"I'm not familiar with Rails nor Sprockets, but it seems something is badly broken somewhere in the stack, because JavaScript files containing `{{` or `}}` end up corrupted after being processed with `jekyll-assets`.\r\n\r\nAlthough I have reproduced this behaviour with other scripts, I'm using `mustache.js` as a test case. [Line 571](https://raw.githubusercontent.com/janl/mustache.js/master/mustache.js#L571) says:\r\n\r\n    mustache.tags = [ '{{', '}}' ];\r\n\r\nWhich after being processed by `jekyll-assets` ends up as:\r\n\r\n    mustache.tags = [ ', ' ];\r\n\r\nI might be wrong, but I suppose `jekyll-assets` just feeds the script contents to `UglifyJS`, which [in turn](https://marijnhaverbeke.nl/uglifyjs) seems to be doing it's work correctly."},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/comments/216046139","html_url":"https://github.com/jekyll/jekyll-assets/issues/268#issuecomment-216046139","issue_url":"https://api.github.com/repos/jekyll/jekyll-assets/issues/268","id":216046139,"user":{"login":"JaimeObregon","id":417226,"avatar_url":"https://avatars.githubusercontent.com/u/417226?v=3","gravatar_id":"","url":"https://api.github.com/users/JaimeObregon","html_url":"https://github.com/JaimeObregon","followers_url":"https://api.github.com/users/JaimeObregon/followers","following_url":"https://api.github.com/users/JaimeObregon/following{/other_user}","gists_url":"https://api.github.com/users/JaimeObregon/gists{/gist_id}","starred_url":"https://api.github.com/users/JaimeObregon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaimeObregon/subscriptions","organizations_url":"https://api.github.com/users/JaimeObregon/orgs","repos_url":"https://api.github.com/users/JaimeObregon/repos","events_url":"https://api.github.com/users/JaimeObregon/events{/privacy}","received_events_url":"https://api.github.com/users/JaimeObregon/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T14:47:46Z","updated_at":"2016-05-01T14:47:46Z","body":"I have prepared a test case and detailed the steps to reproduce the issue. It is available at [JaimeObregon/jekyll-assets-test-case](//github.com/JaimeObregon/jekyll-assets-test-case).\r\n\r\nI agree that this may not be an issue in Jekyll-Assets itself, but in other components of the workflow, or even a misconfiguration on my side. All in all, with my current understanding of Sprockets I haven't been able to dig deeper into it."}}