Sha256: b9573669d112a7510e047f6a87136b18b6b8bbc50aad3fb002262643ed9d4d87

Contents?: true

Size: 461 Bytes

Versions: 15

Compression:

Stored size: 461 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'webgen/content_processor'
require 'webgen/vendor/rainpress'

module Webgen
  class ContentProcessor

    # Minifies CSS files.
    module Rainpress

      # Process the content of +context+ with Rainpress (a CSS minifier).
      def self.call(context)
        context.content = ::Rainpress.compress(context.content, context.website.config['content_processor.rainpress.options'])
        context
      end

    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
webgen-1.7.3 lib/webgen/content_processor/rainpress.rb
webgen-1.7.2 lib/webgen/content_processor/rainpress.rb
webgen-1.7.1 lib/webgen/content_processor/rainpress.rb
webgen-1.7.0 lib/webgen/content_processor/rainpress.rb
webgen-1.6.0 lib/webgen/content_processor/rainpress.rb
webgen-1.5.2 lib/webgen/content_processor/rainpress.rb
webgen-1.5.1 lib/webgen/content_processor/rainpress.rb
webgen-1.5.0 lib/webgen/content_processor/rainpress.rb
webgen-1.4.1 lib/webgen/content_processor/rainpress.rb
webgen-1.4.0 lib/webgen/content_processor/rainpress.rb
webgen-1.3.0 lib/webgen/content_processor/rainpress.rb
webgen-1.2.1 lib/webgen/content_processor/rainpress.rb
webgen-1.2.0 lib/webgen/content_processor/rainpress.rb
webgen-1.1.0 lib/webgen/content_processor/rainpress.rb
webgen-1.0.0 lib/webgen/content_processor/rainpress.rb