Sha256: 47975113c31c652db65ca56e33b7b8be67a4a7d0c4e68c37844e5ba4ee2fe016

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

module Middleman
  module MinifyHtml
    class << self
      def registered(app, options={})
        app.set :html_compressor, false
        
        app.after_configuration do
          unless respond_to?(:html_compressor) && html_compressor
            require File.join(File.dirname(__FILE__), 'vendor/htmlcompressor-0.0.6/lib/htmlcompressor')
            set :html_compressor, ::HtmlCompressor::Compressor.new(options)
          end
          
          # Setup Rack to watch for inline JS
          use ::HtmlCompressor::Rack, options
        end
      end
      alias :included :registered
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-minify-html-3.1.0 lib/middleman-minify-html/extension.rb