Permalink
Browse files

make sure that link_css and link_js remove whitespace

  • Loading branch information...
1 parent 49d5e56 commit 29516d02a36e4b2d8c1a2375522ec1b7eadba871 @vanntastic committed Mar 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 app_generators/sinatra_app/templates/lib/app_helper.rb.erb
@@ -24,7 +24,7 @@ module AppHelper
content = single_tag(:link, options)
else
srcs.split(",").each do |src|
- options[:href] = "/css/#{src}.css"
+ options[:href] = "/css/#{src.strip}.css"
content << single_tag(:link, options)
content << "\n"
end
@@ -46,7 +46,7 @@ module AppHelper
:type => "text/javascript")
else
srcs.split(",").each do |src|
- content << single_tag(:script, :src => "/js/#{src}.js",
+ content << single_tag(:script, :src => "/js/#{src.strip}.js",
:type => "text/javascript")
content << "\n"
end

0 comments on commit 29516d0

Please sign in to comment.