class Tilt::PrawnTemplate

def evaluate(scope, locals, &block)

def evaluate(scope, locals, &block)
  pdf = @engine
  if data.respond_to?(:to_str)
    locals[:pdf] = pdf
    super(scope, locals, &block)
  elsif data.kind_of?(Proc)
    data.call(pdf)
  end
  @output ||= pdf.render
end