in reply to PDF::Template redesign - I want your ideas!
The more I look at the and think about it, the more it seems the template portion should be completly seperate from the PDF generation portion. Is there any real reason to combine those two together? Then HTML, PDF, EXCEL would all use the same template code and the post parse the output in the needed form. Code might look like:
<code> use Simple::Template; #dunno what you would call it but it pulls the *template* portions out use PDF::Template; my $pdf = Simple::Template->new(filename => $filename, processor => PDF::Template->new() ); $pdf->output_file($filename . '.pdf'); <code>PDF::Template could even automate the calls to Simple::Template. A generic backend template would have the advantage that the user could use HTML::Template (style) or TT or something else to generate the final code to send to the Processor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDF::Template redesign - I want your ideas!
by dragonchild (Archbishop) on Dec 02, 2005 at 16:44 UTC | |
by xdg (Monsignor) on Dec 02, 2005 at 20:40 UTC | |
by holli (Abbot) on Dec 02, 2005 at 19:07 UTC | |
by cyclist38 (Hermit) on Dec 02, 2005 at 16:54 UTC | |
by eric256 (Parson) on Dec 02, 2005 at 16:54 UTC | |
by dragonchild (Archbishop) on Dec 02, 2005 at 16:56 UTC | |
by eric256 (Parson) on Dec 02, 2005 at 17:17 UTC |