CoffeeScript Filter generates incorrect comments
In 1.5.2, the CoffeeScript filter is broken. For example:
:coffeescript
alert 'hello world'
This results in the following JavaScript being generated:
<script type='text/javascript'>
#<![CDATA[
(function() {
alert('hello world');
}).call(this);
#]]>
</script>
Which doesn't work in Firefox 5.0.1:
Error: illegal character
Source File:http://localhost:9000/
Line: 7, Column: 2
Source Code:
#<![CDATA[
It doesn't seem to like the # character. I get this error in Safari as well.
:coffeescript
alert 'hello world'
This results in the following JavaScript being generated:
<script type='text/javascript'>
#<![CDATA[
(function() {
alert('hello world');
}).call(this);
#]]>
</script>
Which doesn't work in Firefox 5.0.1:
Error: illegal character
Source File:http://localhost:9000/
Line: 7, Column: 2
Source Code:
#<![CDATA[
It doesn't seem to like the # character. I get this error in Safari as well.
Leave a comment