From 390674ba83f7279a7ccc65267e00f35c1d482caa Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 3 Jul 2009 18:42:16 -0700 Subject: [PATCH] [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. --- lib/compass/configuration.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index ae4f5b95..3b7989c5 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -120,6 +120,21 @@ 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