Module: Middleman::Features::MinifyJavascript

Defined in:
lib/middleman/features/minify_javascript.rb

Defined Under Namespace

Modules: Haml

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included



3
4
5
6
7
8
# File 'lib/middleman/features/minify_javascript.rb', line 3

def registered(app)
  Middleman::Features::MinifyJavascript::Haml::Javascript.send :include, ::Haml::Filters::Base

  require "middleman/features/minify_javascript/rack"
  app.use Middleman::Rack::MinifyJavascript
end