[Configuration] [Command Line] Whether to generate relative links to assets is now controlled by a separate configuration flag and can be set via a command-line switch.

This commit is contained in:
Chris Eppstein 2009-07-03 18:42:16 -07:00
parent 74141399af
commit 390674ba83

View File

@ -120,6 +120,21 @@ module Compass
end end
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 def default_output_style
if environment == :development if environment == :development
:expanded :expanded