Converter
# File lib/jekyll/converters/scss.rb, line 80 def allow_caching? !safe? end
# File lib/jekyll/converters/scss.rb, line 92 def convert(content) ::Sass.compile(content, sass_configs) end
# File lib/jekyll/converters/scss.rb, line 24 def jekyll_sass_configuration options = @config["sass"] || {} unless options["style"].nil? options["style"] = options["style"].to_s.gsub(/\A:/, '').to_sym end options end
# File lib/jekyll/converters/scss.rb, line 12 def matches(ext) ext =~ /^\.scss$/ end
# File lib/jekyll/converters/scss.rb, line 16 def output_ext(ext) ".css" end
# File lib/jekyll/converters/scss.rb, line 20 def safe? !!@config["safe"] end
# File lib/jekyll/converters/scss.rb, line 32 def sass_build_configuration_options(overrides) if safe? { :load_paths => sass_load_paths, :syntax => syntax, :style => sass_style, :cache => false } else Jekyll::Utils.symbolize_hash_keys( Jekyll::Utils.deep_merge_hashes( jekyll_sass_configuration, overrides ) ) end end
# File lib/jekyll/converters/scss.rb, line 84 def sass_configs sass_build_configuration_options({ "syntax" => syntax, "cache" => allow_caching?, "load_paths" => sass_load_paths }) end
# File lib/jekyll/converters/scss.rb, line 54 def sass_dir return "_sass" if jekyll_sass_configuration["sass_dir"].to_s.empty? jekyll_sass_configuration["sass_dir"] end
# File lib/jekyll/converters/scss.rb, line 68 def sass_dir_relative_to_site_source Jekyll.sanitized_path(@config["source"], sass_dir) end
# File lib/jekyll/converters/scss.rb, line 72 def sass_load_paths if safe? [sass_dir_relative_to_site_source] else (user_sass_load_paths + [sass_dir_relative_to_site_source]).uniq end.select { |load_path| File.directory?(load_path) } end
Generated with the Darkfish Rdoc Generator 2.