Sha256: 126fcdf67d353a09e321aa95cbfbc81fbe579f9656aee1774a2358ce37078bee

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  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

9 entries across 9 versions & 1 rubygems

Version Path
nanoc-3.7.4 lib/nanoc/filters/rainpress.rb
nanoc-3.7.3 lib/nanoc/filters/rainpress.rb
nanoc-3.7.2 lib/nanoc/filters/rainpress.rb
nanoc-3.7.1 lib/nanoc/filters/rainpress.rb
nanoc-3.7.0 lib/nanoc/filters/rainpress.rb
nanoc-3.6.11 lib/nanoc/filters/rainpress.rb
nanoc-3.6.10 lib/nanoc/filters/rainpress.rb
nanoc-3.6.9 lib/nanoc/filters/rainpress.rb
nanoc-3.6.8 lib/nanoc/filters/rainpress.rb