[Configuration] A more logical and consistent approach to http path locations.
This commit is contained in:
parent
390674ba83
commit
bbe8366350
@ -120,21 +120,6 @@ module Compass
|
||||
end
|
||||
end
|
||||
|
||||
def relative_assets?
|
||||
# the http_images_path is deprecated, but here for backwards compatibility.
|
||||
relative_assets || http_images_path == :relative
|
||||
end
|
||||
|
||||
def comment_for_relative_assets
|
||||
unless relative_assets
|
||||
%q{# To enable relative paths to assets via compass helper functions. Uncomment:
|
||||
# relative_assets = true
|
||||
}
|
||||
else
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
def default_output_style
|
||||
if environment == :development
|
||||
:expanded
|
||||
@ -159,9 +144,8 @@ module Compass
|
||||
end
|
||||
end
|
||||
|
||||
def root_relative(path)
|
||||
hp = http_path || default_http_path
|
||||
hp = hp[0..-2] if hp[-1..-1] == "/"
|
||||
def mk_http_path(path)
|
||||
hp = http_path[0..-2] if http_path[-1..-1] == "/"
|
||||
"#{hp}/#{path}"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user