And it works when setting it in Apache config?

I have a startup.pl script which is started by mod_perl. I will try to put 
it there also.

Thanks.

--
Octavian

----- Original Message ----- 
From: "Rodney Broom" <[email protected]>
To: <[email protected]>
Sent: Friday, June 18, 2010 1:20 PM
Subject: Re: [Templates] Setting $Template::Directive::WHILE_MAX in 
Catalystapps


>I have it in my apache config, with the assignment before loading related 
>libs. If I recall correctly, I had trouble getting this setting to take, 
>also.
>
> ---
> Rodney Broom
>
>
> ----- Original Message ----- 
> From: "Octavian Rasnita" <[email protected]>
> To: <[email protected]>
> Sent: Friday, June 18, 2010 02:55
> Subject: [Templates] Setting $Template::Directive::WHILE_MAX in Catalyst 
> apps
>
>
> 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
>>
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 5205 (20100617) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> 


__________ 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