Hi,

Please tell me where can I set the global variable 
$Template::Directive::WHILE_MAX in a Catalyst app.

I have read that it should be set in lib/MyApp/View/TT.pm but it doesn't work 
if I set it there.

I tried to put:
$Template::Directive::WHILE_MAX = 3000;


in process(), in render() (before $self->next::method(@_)), and outside the 
subroutines.

Even after setting this variable, the app still prints the error:
undef error - WHILE loop terminated (> 1000 iterations)

The part of the body that prints this error is generated using:

my $body = $c->view->render($c, 'template.tt');

Do you have any idea why it is not working?

Thanks.


--
Octavian



__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5205 (20100617) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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

Reply via email to