Sha256: 3fd7dc441a0c4fd8b3711d3989722cbc12ce585ab541d9718c67e60501a933ad
Contents?: true
Size: 452 Bytes
Versions: 15
Compression:
Stored size: 452 Bytes
Contents
# encoding: utf-8 require 'rainpress' module Nanoc::Filters class Rainpress < Nanoc::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
15 entries across 15 versions & 1 rubygems