Sha256: 20d1a988254f73f0e1e0ad69b12d7a12ae8a6c96019a921416168b550993944d

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  # @api private
  class Rainpress < Nanoc::Filter
    requires 'rainpress'

    # Runs the content through [Rainpress](http://code.google.com/p/rainpress/).
    # Parameters passed to this filter will be passed on to Rainpress.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, params = {})
      ::Rainpress.compress(content, params)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 lib/nanoc/filters/rainpress.rb
nanoc-4.0.0b1 lib/nanoc/filters/rainpress.rb
nanoc-4.0.0a2 lib/nanoc/filters/rainpress.rb
nanoc-4.0.0a1 lib/nanoc/filters/rainpress.rb