The way the CSS and JS is rendered in the layout is currently problematic in a development environnement.
|
<style> |
|
<%= render partial: 'layouts/lockup/inline_css' %> |
|
</style> |
|
<script> |
|
<%= render partial: 'layouts/lockup/inline_js' %> |
|
</script> |
Rails assume the content of the html.erb files will actually be HTML, and will automatically add HTML comment denoting the start and end of the partial in the final view. The result of this behavior is the inclusion of comments with invalid syntax within the style and the script tag, notably hindering the interpretation of the JS, and thus breaking the hint button.
I suggest to simply move the style and the script tag inside the partial themselves to avoid the issue.
The way the CSS and JS is rendered in the layout is currently problematic in a development environnement.
lockup/app/views/layouts/lockup/application.html.erb
Lines 9 to 14 in 7262465
Rails assume the content of the
html.erbfiles will actually be HTML, and will automatically add HTML comment denoting the start and end of the partial in the final view. The result of this behavior is the inclusion of comments with invalid syntax within thestyleand thescripttag, notably hindering the interpretation of the JS, and thus breaking the hint button.I suggest to simply move the
styleand thescripttag inside the partial themselves to avoid the issue.