Class: Tipsy::Handler::PhpHandler

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/tipsy/handler/php.rb

Overview

The PHP engine allows processing/rendering of php templates within the server environment. To process php templates, use the template.html.php naming syntax.

Instance Method Summary collapse

Instance Method Details

#evaluate(scope, locals, &block) ⇒ Object



17
18
19
# File 'lib/tipsy/handler/php.rb', line 17

def evaluate(scope, locals, &block)
  @output ||= @engine.render
end

#prepareObject



13
14
15
# File 'lib/tipsy/handler/php.rb', line 13

def prepare
  @engine = PhpProcessor.new(data)
end