extension が new されるのは
Middleman::CoreExtensions::Extensions::ClassMethods::register
##
|
|
hook
defined at Middleman::CoreExtensions::Extensions::registered(app)
- :initialized
- :instance_available
- :after_configuration
- :before_configuration
- :build_config
- :development_config
run at Middleman::CoreExtensions::Extensions::InstanceMethods::initialize
InstanceMethods は Application に include されるので、
結局 app.initialize の時に呼ばれることになる。
- run :initialized
- (activate :sprocket)
- run :before_configuration
- (load ‘config.rb’)
- run :build_config if build?
- run :development_config if specified
- run :instance_available
- (reload I18n)
- run :after_configuration
Application
defined at Middleman::Application
- :before # Before request hook
- :ready # Ready (all loading and parsing of extensions complete) hook
- :before_build # Runs before the build is started
- :after_build # Runs after the build is finished
Middleman::CoreExtensions::Request::ClassMethods::inst()
before
Middleman::CoreExtensions::Request::InstanceMethods::process_start(env, req, res)