Sha256: 060855f85414027e3454b950b4fdeae60b709082157d7d51bb5d50eb2ca71f2f

Contents?: true

Size: 1.67 KB

Versions: 32

Compression:

Stored size: 1.67 KB

Contents

module Compass
  module Configuration
    # Comments are emitted into the configuration file when serialized and make it easier to understand for new users.
    module Comments

      def comment_for_http_path
        unless top_level.http_path_without_default
          "# Set this to the root of your project when deployed:\nhttp_path = #{top_level.http_path.to_s.inspect}\n"
        else
          ""
        end
      end

      def comment_for_relative_assets
        unless top_level.relative_assets
          %q{# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
}
        else
          ""
        end
      end

      def comment_for_line_comments
        if top_level.line_comments
          %q{# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
}
        else
          ""
        end
      end

      def comment_for_output_style
        unless top_level.output_style_without_default
          %Q{# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
}
        else
          ""
        end
      end

      def comment_for_preferred_syntax
        if top_level.preferred_syntax == :scss && top_level.sass_dir
          %Q{
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass #{top_level.sass_dir} scss && rm -rf sass && mv scss sass
}
        else
          ""
        end
      end
    end
  end
end

Version data entries

32 entries across 31 versions & 4 rubygems

Version Path
compass-0.12.7 lib/compass/configuration/comments.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/lib/compass/configuration/comments.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/lib/compass/configuration/comments.rb
compass-0.12.6 lib/compass/configuration/comments.rb
compass-0.12.5 lib/compass/configuration/comments.rb
compass-0.12.4 lib/compass/configuration/comments.rb
compass-0.12.3 lib/compass/configuration/comments.rb
compass-0.13.alpha.12 lib/compass/configuration/comments.rb
compass-0.13.alpha.10 lib/compass/configuration/comments.rb
compass-0.13.alpha.9 lib/compass/configuration/comments.rb
compass-0.13.alpha.8 lib/compass/configuration/comments.rb
compass-0.13.alpha.7 lib/compass/configuration/comments.rb
compass-0.13.alpha.6 lib/compass/configuration/comments.rb
compass-0.13.alpha.5 lib/compass/configuration/comments.rb
compass-sourcemaps-0.12.4.sourcemaps.a4836f1 lib/compass/configuration/comments.rb
compass-0.13.alpha.4 lib/compass/configuration/comments.rb
compass-0.13.alpha.3 lib/compass/configuration/comments.rb
compass-0.13.alpha.2 lib/compass/configuration/comments.rb
compass-0.12.2 lib/compass/configuration/comments.rb
compass-0.12.2.rc.1 lib/compass/configuration/comments.rb