http://octopress.org/“rel=“nofollow” 现在我想补充一些 Java文,我想在咖啡厅读写。
I followed this Gist to create a simple converter that compiles CoffeeScript to Javascript:
module Jekyll
require coffee-script
class CoffeeScriptConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /coffee/i
end
def output_ext(ext)
.js
end
def convert(content)
begin
CoffeeScript.compile content
rescue StandardError => e
puts "CoffeeScript error: #{e.message}"
end
end
end
end
问题是, generated印文档中的所有引文均已越出(‘
和及
“
)。
When I output the generated Javascript code in the convert
method, it looks fine (quotes are not escaped).
I googled a lot but nobody seems to have this problem.
What could be the issue here?