fix sourceURL so it works on ie11 and latest chrome
This commit is contained in:
parent
e101396ea1
commit
f3a5a6f8dc
|
@ -5,10 +5,9 @@ class SourceURL < Tilt::Template
|
||||||
end
|
end
|
||||||
|
|
||||||
def evaluate(scope, locals, &block)
|
def evaluate(scope, locals, &block)
|
||||||
code = ""
|
code = "eval("
|
||||||
code << "eval("
|
|
||||||
code << data.inspect
|
code << data.inspect
|
||||||
code << " + \"\\n//@ sourceURL=/'#{scope.logical_path}'\""
|
code << " + \"\\n//# sourceURL=#{scope.logical_path}\""
|
||||||
code << ");\n"
|
code << ");\n"
|
||||||
code
|
code
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue