module Middleman::CoreExtensions::ShowExceptions

def registered(app)

Once registered
def registered(app)
  # Whether to catch and display exceptions
  # @return [Boolean]
  app.config.define_setting :show_exceptions, true, 'Whether to catch and display exceptions'
  # When in dev
  app.configure :development do
    # Include middlemare
    if config[:show_exceptions]
      use ::Rack::ShowExceptions
    end
  end
end