middleman/middleman-core/fixtures/extension-api-deprecations-app/config.rb

12 lines
236 B
Ruby
Raw Normal View History

class LayoutDisabler < Middleman::Extension
def initialize(app, options_hash = {}, &block)
super
app.set :layout, false
end
end
::Middleman::Extensions.register(:layout_disabler, LayoutDisabler)
activate :layout_disabler