Sha256: c4457da7dd22e69285a7741487e44dda2cb3c0b5435964bc23140e95de66c5e9
Contents?: true
Size: 337 Bytes
Versions: 14
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true 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
14 entries across 14 versions & 1 rubygems