We're using a third part app that makes use of Template. I'd like to use some 
perl directly in the templates via the perl blocks. However, no matter what I 
set, I keep getting the eval_perl not set error. I'm using the latest Template 
install from cpan. I'm calling Template like so:

my $config    = { 
INCLUDE_PATH => $templates,
EVAL_PERL => 1,
        };
    if ($site->has_attrib("templatecache")) {
      $config->{COMPILE_DIR} = $site->get_templatecache();
    }
    my $template  = new Template $config or 
        die "Can't make new Template: ", Template->error;

Nevertheless, I still get the eval_perl not set error. Can anyone suggest some 
things to try? How I can I install Template with EVAL_PERL turned on by default 
(on a linux box)? Thanks,

John
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to