Sha256: 05f3abb5fe6e6146efd0049d34975365522b43e0e609eb2769d8c3ae3b1b5d42

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 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['context.rb']
require 'clamsy'

template_doc_path = $data_file['student_offer_letter.odt']
final_pdf_path = $tmp_file['student_offer_letter.pdf']

print "Generating #{final_pdf_path} ... "
Clamsy.process($context, 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_one.rb