Hi Sam,
I think I found two bugs and/or problems in HTML::Template::JIT:
- in HTML::Template::JIT::Compiler, if you use the "jit_debug"
switch in the new constructor, it will open a pipe to the
indent shell command. My linux machine doesn't have this
binary installed and complains when it can't find it. Should
this module rely on a shell command, or should it implement
it in pure perl? I figured it's a relic from debugging that
you forgot to remove =)
- I found the above bug when trying to figure out why my
program wouldn't function. It doesn't seem to want to
do the initial compile of the template when Taint it
turned on. The following code is an example of what I
was doing:
------
#!/usr/bin/perl -wT
undef $ENV{PATH}; #detaint the path
use strict;
use File::Spec::Functions qw(catfile tmpdir curdir);
use HTML::Template::JIT;
my $template = HTML::Template::JIT->new(
filename => catfile(curdir, 'hello.tmpl'),
jit_path => catfile(tmpdir, 'jit'),
jit_debug => 1,
);
$template->param(message => 'Hello World');
warn "[$template]"; #DEBUG
print $template->output;
__END__
The template hello.tmpl contains only a single
TMPL_VAR parameter called "message".
Thanks,
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]