examples/general/templates.rb in prawn-0.11.1.pre vs examples/general/templates.rb in prawn-0.11.1

- old
+ new

@@ -1,10 +1,11 @@ # encoding: utf-8 # # This sample demonstrates the use of the :template option when generating # a new Document. The template PDF file is imported into a new document. -require "#{File.dirname(__FILE__)}/../example_helper.rb" +require File.expand_path(File.join(File.dirname(__FILE__), + %w[.. example_helper])) filename = "#{Prawn::BASEDIR}/reference_pdfs/curves.pdf" Prawn::Document.generate("template.pdf", :template => filename) do text "Previous pages and content imported", :size => 18, :align => :center