Sha256: 9ba1fa579ca3258d471da3fdd3476aaf62651b01c89dfa93900987e88962d2f9
Contents?: true
Size: 454 Bytes
Versions: 8
Compression:
Stored size: 454 Bytes
Contents
# encoding: utf-8 require 'rainpress' module Nanoc3::Filters class Rainpress < Nanoc3::Filter # 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