Class: Middleman::PhpExtension
- Inherits:
-
Extension
- Object
- Extension
- Middleman::PhpExtension
- Defined in:
- lib/middleman-php/extension.rb
Instance Method Summary collapse
- #after_configuration ⇒ Object
- #before ⇒ Object
-
#initialize(app, options_hash = {}, &block) ⇒ PhpExtension
constructor
A new instance of PhpExtension.
Constructor Details
#initialize(app, options_hash = {}, &block) ⇒ PhpExtension
Returns a new instance of PhpExtension.
6 7 8 |
# File 'lib/middleman-php/extension.rb', line 6 def initialize(app, ={}, &block) super end |
Instance Method Details
#after_configuration ⇒ Object
14 15 16 17 18 |
# File 'lib/middleman-php/extension.rb', line 14 def after_configuration app.use Middleman::PhpMiddleware, source_dir: app.source_dir, environment: app.settings.environment end |
#before ⇒ Object
10 11 12 |
# File 'lib/middleman-php/extension.rb', line 10 def before template_extensions :php => :html end |