zeus.ugent.be/lib/filters/htmlpress.rb
2018-08-28 21:59:17 +02:00

5 lines
237 B
Ruby

require 'htmlcompressor'
Nanoc::Filter.define(:html_press) do |content, options|
HtmlCompressor::Compressor.new(compress_javascript: true, compress_css: true, remove_quotes: true, simple_boolean_attributes: true).compress content
end