holli has asked for the wisdom of the Perl Monks concerning the following question:
The template:#!perl my $t=Template->new ( INCLUDE_PATH => 'c:/', COMPILE_DIR =>"c:/tt", FILTERS => { fop => sub { open OUT, ">tmpf"; print OUT @_; close OUT; $_ = `fop -fo tmpf -pdf test.pdf`; unlink "tmpf"; return $_; } } ); #....
[%- FILTER fop -%] <?xml version="1.0" encoding="iso-8859-1"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> [%# do stuff %] [% END %]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template Toolkit: Better way to call FOP
by runrig (Abbot) on Jul 14, 2005 at 17:39 UTC | |
|
Re: Template Toolkit: Better way to call FOP
by blazar (Canon) on Jul 14, 2005 at 16:50 UTC |