Skip to content

Commit

Permalink
Correctly convert scss files to css names in the installatio instruct…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
chriseppstein committed Jan 26, 2011
1 parent 13ecaa2 commit 58740fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compass/app_integration/rails/installer.rb
Expand Up @@ -163,7 +163,7 @@ def html_stylesheet_links
manifest.each_stylesheet do |stylesheet|
# Skip partials.
next if File.basename(stylesheet.from)[0..0] == "_"
ss_line = "<%= stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'"
ss_line = "<%= stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.s[ac]ss$/,'.css')}'"
if stylesheet.options[:media]
ss_line += ", :media => '#{stylesheet.options[:media]}'"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/compass/installers/manifest_installer.rb
Expand Up @@ -48,7 +48,7 @@ def stylesheet_links
media = if stylesheet.options[:media]
%Q{ media="#{stylesheet.options[:media]}"}
end
ss_line = %Q{ <link href="#{http_stylesheets_path}/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
ss_line = %Q{ <link href="#{http_stylesheets_path}/#{stylesheet.to.sub(/\.s[ac]ss$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
if stylesheet.options[:condition]
ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->"
end
Expand Down

0 comments on commit 58740fc

Please sign in to comment.