From 48c7d45c3058a16adf32fb267d7f9fe6346a41e9 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 3 Jul 2009 22:00:18 -0700 Subject: [PATCH] [Compass Core] A new helper function stylesheet_url(path) can now be used to refer to assets that are relative to the css directory. --- lib/compass/configuration.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index 469c9fd3..ae4f5b95 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -144,8 +144,9 @@ module Compass end end - def mk_http_path(path) - hp = http_path[0..-2] if http_path[-1..-1] == "/" + def root_relative(path) + hp = http_path || default_http_path + hp = hp[0..-2] if hp[-1..-1] == "/" "#{hp}/#{path}" end