-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lines following a -# comment within a <script> tag disappear after upgrade to 0.6.1 #19
Comments
Well, the only thing that happened from 0.6.0 to 0.6.1 was updating As a cursory look, I'd guess it might be related to netzpirat/haml-coffee#67. In particular, this line. Of course, this is all just a guess, and would require actual diag to figure out the issue. |
thanks for your reply. summoning @netzpirat ;) |
I can confirm the problem. Until fixed, you can switch to a filter for the javascript: %body
:javascript
BB.preloadedData = {};
// do NOT change the following two lines as we're replacing them via a regex in the insert_json_into_dom grunt task
BB.preloadedData.about = [];
BB.preloadedData.projects = []; which works just fine. I'll keep you updated... |
Haml-Coffee 1.13.1 released which fixes the issue. Thanks for the failing spec :) |
@netzpirat Thanks for the timely fix! @paulwittmann Can you check this and ensure it works for you now? |
hm, still getting:
grunt-haml 0.8.0 and haml-coffee 1.13.1 now.
|
Oops, my spec omitted the |
@paulwittmann What's the word? |
Works now. Thanks a lot! (haml-coffee 1.13.3, grunt-haml 0.8.0) |
Sorry, now there's another issue:
is converted to:
works when replacing |
I'm not able to test this at the moment, so, can you try with a slightly smaller example? Like: %script{type: 'text/javascript'}
var x = 0
-# Some comment line
var y = 1 Maybe we can get to the bottom of this. |
I'm going to assume this is good. |
HAML code:
relevant output with 0.6.1 and 0.8.0 (lacking "about" and "projects"):
relevant output with 0.6.0:
The comment is NOT supposed to appear in the rendered HTML. Am I doing something wrong and is this intended behaviour inside
<script>
tags?The text was updated successfully, but these errors were encountered: