D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
sprockets-2.12.4
/
lib
/
sprockets
/
Filename :
sass_compressor.rb
back
Copy
require 'tilt' module Sprockets class SassCompressor < Tilt::Template self.default_mime_type = 'text/css' def self.engine_initialized? defined?(::Sass::Engine) end def initialize_engine require_template_library 'sass' end def prepare end def evaluate(context, locals, &block) ::Sass::Engine.new(data, { :syntax => :scss, :cache => false, :read_cache => false, :style => :compressed }).render end end end