Skip to content

Commit

Permalink
make sure that link_css and link_js remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vann committed Mar 25, 2009
1 parent 49d5e56 commit 29516d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_generators/sinatra_app/templates/lib/app_helper.rb.erb
Expand Up @@ -24,7 +24,7 @@ module AppHelper
content = single_tag(:link, options) content = single_tag(:link, options)
else else
srcs.split(",").each do |src| srcs.split(",").each do |src|
options[:href] = "/css/#{src}.css" options[:href] = "/css/#{src.strip}.css"
content << single_tag(:link, options) content << single_tag(:link, options)
content << "\n" content << "\n"
end end
Expand All @@ -46,7 +46,7 @@ module AppHelper
:type => "text/javascript") :type => "text/javascript")
else else
srcs.split(",").each do |src| 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") :type => "text/javascript")
content << "\n" content << "\n"
end end
Expand Down

0 comments on commit 29516d0

Please sign in to comment.