Sha256: 3c3720755af3c55367bfaab84755e486fbe6ac22a5d12ae7e6160114b1b12540
Contents?: true
Size: 1.16 KB
Versions: 14
Compression:
Stored size: 1.16 KB
Contents
require 'awestruct/handlers/base_tilt_handler' require 'awestruct/handlers/file_handler' require 'awestruct/handlers/front_matter_handler' require 'awestruct/handlers/layout_handler' module Awestruct module Handlers class CssTiltHandler < BaseTiltHandler CHAIN = Awestruct::HandlerChain.new(/\.(sass|scss|less)$/, Awestruct::Handlers::FileHandler, Awestruct::Handlers::CssTiltHandler ) def initialize(site, delegate) super( site, delegate ) end ## # Sass Engine requires dynamically generated options. ## def options opts = super # Sass / Scss opts[:load_paths] ||= [] if defined?(::Compass) ::Compass::Frameworks::ALL.each do |framework| opts[:load_paths] << framework.stylesheets_directory end opts[:load_paths] << ::Compass::SpriteImporter.new end opts[:load_paths] << File.join(site.config.dir.to_s, File.dirname(relative_source_path) ) unless relative_source_path.nil? # Less use Paths instead of load_paths opts[:paths] = opts[:load_paths] return opts end end end end
Version data entries
14 entries across 14 versions & 1 rubygems