sinatra-sprockets-ext 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,11 +27,11 @@ module Sinatra::Sprockets
|
|
27
27
|
if debug && asset = asset_paths.asset_for(source, 'js')
|
28
28
|
asset.to_a.map do |dep|
|
29
29
|
src = asset_path(dep, :ext => 'js', :body => true, :digest => digest)
|
30
|
-
"<script src
|
30
|
+
"<script src='#{src}' type='text/javascript'></script>"
|
31
31
|
end
|
32
32
|
else
|
33
33
|
src = asset_path(source, :ext => 'js', :body => body, :digest => digest)
|
34
|
-
"<script src
|
34
|
+
"<script src='#{src}' type='text/javascript'></script>"
|
35
35
|
end
|
36
36
|
end.join("\n")
|
37
37
|
end
|