Sha256: bd8ba4bd61dc5af22ef6485bc6ef7bdd00912fbcc2efc92ac1e5d44b3987a68a

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 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

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-3.6.7 lib/nanoc/filters/rainpress.rb
nanoc-3.6.6 lib/nanoc/filters/rainpress.rb
nanoc-3.6.5 lib/nanoc/filters/rainpress.rb
nanoc-3.6.4 lib/nanoc/filters/rainpress.rb
nanoc-3.6.3 lib/nanoc/filters/rainpress.rb
nanoc-3.6.2 lib/nanoc/filters/rainpress.rb
nanoc-3.6.1 lib/nanoc/filters/rainpress.rb
nanoc-3.6.0 lib/nanoc/filters/rainpress.rb