All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bs.plugins.compass-asset-pipeline.2.9.1.source-code.compass-asset-pipeline.rb Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
require 'compass'
require 'java'

Compass::Compiler.class_eval do 
    def engine(sass_filename, css_filename)
      syntax = (sass_filename =~ /\.(s[ac]ss)$/) && $1.to_sym || :sass
      opts = sass_options.merge(:filename => sass_filename, :css_filename => css_filename, :syntax => syntax)
      asset_file = Java::AssetPipeline::AssetHelper.fileForFullName(sass_filename)
      Sass::Engine.new(Java::AssetPipelineSass::SassProcessor.convertStreamToString(asset_file.getInputStream()), opts)
    end
end

Compass::SpriteImporter.class_eval do
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy