Stabinger, John wrote: > 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:
<http://template-toolkit.org/docs/manual/Config.html#section_EVAL_PERL> " When using compiled templates (see Caching and Compiling Options), the EVAL_PERL has an affect when the template is compiled, and again when the templates is subsequently processed, possibly in a different context to the one that compiled it. If the EVAL_PERL is set when a template is compiled, then all PERL and RAWPERL blocks will be included in the compiled template. If the EVAL_PERL option isn't set, then Perl code will be generated which always throws a 'perl' exception with the message 'EVAL_PERL not set' whenever the compiled template code is run." Are you using compiled templates? Have you made sure they are recompiled? (e.g. by touching the source templates) Cheers, Dave _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates