Use the http_stylesheets_path instead of hard coding.

This commit is contained in:
Chris Eppstein 2009-08-29 11:57:13 -07:00
parent f59ca512ce
commit dd867d668a

View File

@ -22,7 +22,7 @@ module Compass
@manifest_file ||= File.join(template_path, "manifest.rb") @manifest_file ||= File.join(template_path, "manifest.rb")
end end
[:css_dir, :sass_dir, :images_dir, :javascripts_dir].each do |dir| [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path].each do |dir|
define_method dir do define_method dir do
Compass.configuration.send(dir) Compass.configuration.send(dir)
end end
@ -173,7 +173,7 @@ module Compass
media = if stylesheet.options[:media] media = if stylesheet.options[:media]
%Q{ media="#{stylesheet.options[:media]}"} %Q{ media="#{stylesheet.options[:media]}"}
end end
ss_line = %Q{ <link href="/stylesheets/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />} ss_line = %Q{ <link href="#{http_stylesheets_path}/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
if stylesheet.options[:condition] if stylesheet.options[:condition]
ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->" ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->"
end end