Sha256: 3ef1ad0d3e615c6b7a98590a025932b42ac12de03564cfe8147a4adb39e46bf2
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters # @since 3.3.0 class YUICompressor < Nanoc::Filter requires 'yuicompressor' # Compress Javascript or CSS using [YUICompressor](http://rubydoc.info/gems/yuicompressor). # This method optionally takes options to pass directly to the # YUICompressor gem. # # @param [String] content JavaScript or CSS input # # @param [Hash] params Options passed to YUICompressor # # @return [String] Compressed but equivalent JavaScript or CSS def run(content, params = {}) ::YUICompressor.compress(content, params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.8.0 | lib/nanoc/filters/yui_compressor.rb |
nanoc-3.7.5 | lib/nanoc/filters/yui_compressor.rb |