middleman/middleman-core/fixtures/extension-api-deprecations-app/config.rb
2015-10-12 12:37:07 -07:00

11 lines
236 B
Ruby

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