Class: Middleman::PhpExtension

Inherits:
Extension
  • Object
show all
Defined in:
lib/middleman-php/extension.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options_hash = {}, &block) ⇒ PhpExtension

option :set_blah, “default”, “An example option”



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/middleman-php/extension.rb', line 5

def initialize(app, options_hash={}, &block)
  # Call super to build options from the options_hash
  super

  require 'shellwords'
  app.use Middleman::PhpMiddleware

  app.before do
    template_extensions :php => :html
  end
end