Sha256: c9f31d75fa3d60dba7e781508e6bf0156a5062e925ed128d6a8a820da5bc09b9

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

module PrawnPlus
  module TemplateHandlers
    # Renderer for a Prawn template. Assumes the template will reference a _pdf_ (a.k.a. Prawn:Document) instance.
    class Prawn
      def call template
        "pdf = ::Prawn::Document.new;" + template.source + ";pdf.render;"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prawn_plus-6.3.0 lib/prawn_plus/template_handlers/prawn.rb