Skip to content

Instantly share code, notes, and snippets.

@dutygeeks
dutygeeks / html_compressor.rb
Created February 28, 2012 23:16 — forked from seth/yui_compressor.rb
HTML COMPRESSOR
class Htmlcompressor < Nanoc3::Filter
identifier :htmlcompressor
type :text => :binary
def run(content, params={})
case @item[:extension]
when "xml.erb"
cmd = "htmlcompressor --type xml -o #{output_filename}"