mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
efd1ef69d6
Upgrade our deps Drop support for Ruby 2.2 (because some deps have) Update rubocop and lints
19 lines
522 B
Ruby
19 lines
522 B
Ruby
set :layout, false
|
|
|
|
class MyFeature < Middleman::Extension
|
|
def initialize(app, options_hash = {}, &block)
|
|
super
|
|
|
|
app.before_server do |server_information|
|
|
puts "/// #{server_information.listeners.first} ///"
|
|
puts "/// #{server_information.port} ///"
|
|
puts "/// #{server_information.server_name} ///"
|
|
puts "/// #{server_information.site_addresses.first} ///"
|
|
puts '/// ### END ### ///'
|
|
end
|
|
end
|
|
end
|
|
|
|
::Middleman::Extensions.register(:my_feature, MyFeature)
|
|
|
|
activate :my_feature
|