#!/usr/bin/perl -w use strict; use warnings; use Template; use Template::Plugin::Latex; my $cfg = { INCLUDE_PATH => '/home/hesco/GP/GGP/PollWatchers/Templates' }; my $template = Template->new($cfg); my $vars = { County_Name => 'Camden County', County_Addr1 => '208 East 4th Street', County_Addr2 => 'P.O. Box 608', County_city_st_zip => 'Woodbine GA 31569-0608', date => 'Monday, October 27th, 2008', code_authority => '21-2-408(b)(1)', Election_Date_and_Type => 'November 4th, 2008 General Election', Precinct_Name => 'Woodbine City Hall 03 Precinct', Precinct_Address => '310 Bedell Avenue; Woodbine GA 31569', County => 'Camden', Poll_Watcher => 'Jane Citizen', Poll_Watcher_Birthdate => 'January 31, 1956', Poll_Watcher_Addr1 => '197 Some Drive', Poll_Watcher_city_st_zip => 'Brunswick GA 31525', }; my $input = 'pollwatcher_408b1.tmpl'; my $output = 'test'; $template->process($input,$vars,"$output.tex", binmode => 1) || die $template->error(); # my $result = `latex "$output.tex"`; # $result = `dvips "$output.dvi"`; # $result = `ps2pdf "$output.ps"`; 1;