mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
11 lines
236 B
Ruby
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
|