[Catalyst] Setting Template Tookit WHILE_MAX from Catalyst

Kutbuddin ksdoctor at burnham.org
Tue Jan 27 01:12:59 GMT 2009


Ca-ching!
Thanks J - I surely profited from that advice. It works.


J. Shirley wrote:
> 
> On Mon, Jan 26, 2009 at 11:50 AM, Kutbuddin <ksdoctor at burnham.org> wrote:
>>
>> Hi,
>>
>> I would like to know how to set the TT variable :
>> $Template::Directive::WHILE_MAX
>>
>> from within Catalyst.. maybe as part of the site View configuration in
>> lib/MyApp/View/TT.pm
>> or similar
>>
>> By default the maximum for a while loop is 1000.
>>
>> thanks..
>> --
>> View this message in context:
>> http://www.nabble.com/Setting-Template-Tookit-WHILE_MAX-from-Catalyst-tp21672356p21672356.html
>> Sent from the Catalyst Web Framework mailing list archive at Nabble.com.
>>
> 
> 
> 1) Edit lib/MyApp/View/TT.pm
> 2) Add: $Template::Directive::WHILE_MAX = $desired_value;
> 3) Profit.
> 
> -J
> 
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/Setting-Template-Tookit-WHILE_MAX-from-Catalyst-tp21672356p21677025.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.




More information about the Catalyst mailing list