class Middleman::Extension

def initialize(app, options_hash={}, &block)

Other tags:
    Yieldparam: options - Extension options

Other tags:
    Yield: - An optional block that can be used to customize options before the extension is activated.

Parameters:
  • options_hash (Hash) -- The raw options hash. Subclasses should not manipulate this directly - it will be turned into {#options}.
  • app (Middleman::Application) -- The Middleman::Application instance
def initialize(app, options_hash={}, &block)
  @_helpers = []
  @app = app
  expose_methods
  setup_options(options_hash, &block)
  # Bind app hooks to local methods
  bind_before_configuration
  bind_after_configuration
  bind_before_build
  bind_after_build
  bind_ready
end