Sha256: 8bd1522938c9eb977721bfeac9e47b522f719c2ab8577a0099717cb1f03f601d
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $current_dir_file = lambda {|f| File.join(File.expand_path(File.dirname(__FILE__)), f) } $data_file = lambda {|f| $current_dir_file["data/#{f}"] } $tmp_file = lambda {|f| $current_dir_file["tmp/#{f}"] } require $data_file['contexts.rb'] require 'clamsy' template_doc_path = $data_file['student_offer_letter.odt'] final_pdf_path = $tmp_file['student_offer_letters.pdf'] print "Generating #{final_pdf_path} ... " Clamsy.process($contexts, template_doc_path, final_pdf_path) puts "done"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clamsy-0.0.5 | examples/create_many.rb |