Dave said, "Are you using compiled templates?
Have you made sure they are recompiled? (e.g. by touching the source
templates)

Cheers, Dave"

I'm not sure if we are using compiled templates or not (it is installed with a 
third party app. Is there a way to test this?). However, I have touched all of 
the templates, cleared that cache, etc., and the error persists. Thanks for 
your help and any further ideas would be greatly appreciated. 


john




Message: 7
Date: Tue, 12 May 2009 15:26:22 +0100
From: Dave Howorth <dhowo...@mrc-lmb.cam.ac.uk>
Subject: Re: [Templates] Help EVAL_PERL settings
To: templates@template-toolkit.org
Message-ID: <4a09870e.90...@mrc-lmb.cam.ac.uk>
Content-Type: text/plain; charset=UTF-8

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

Reply via email to