Module: Middleman::Extensions::Tumblargh

Defined in:
lib/middleman/extensions/tumblargh.rb

Class Method Summary collapse

Class Method Details

.registered(app, options = {}) ⇒ Object Also known as: included



8
9
10
11
12
13
14
15
16
17
# File 'lib/middleman/extensions/tumblargh.rb', line 8

def registered(app, options={})
  ::Tumblargh::API::set_api_key(options[:api_key])

  app.after_configuration do
    unless build?
      use ::Rack::Tumblargh, options
    end
  end

end