[Compass Core] A new helper function stylesheet_url(path) can now be used to refer to assets that are relative to the css directory.

This commit is contained in:
Chris Eppstein 2009-07-03 22:00:18 -07:00
parent bbe8366350
commit 48c7d45c30

View File

@ -144,8 +144,9 @@ module Compass
end end
end end
def mk_http_path(path) def root_relative(path)
hp = http_path[0..-2] if http_path[-1..-1] == "/" hp = http_path || default_http_path
hp = hp[0..-2] if hp[-1..-1] == "/"
"#{hp}/#{path}" "#{hp}/#{path}"
end end