[Catalyst] Setting Template Tookit WHILE_MAX from Catalyst
Kutbuddin
ksdoctor at burnham.org
Mon Jan 26 21:57:24 GMT 2009
OK.. so how?
I tried :
__PACKAGE__->config({
CATALYST_VAR => 'Catalyst',
INCLUDE_PATH => [
subs->path_to( 'root', 'src' ),
subs->path_to( 'root', 'lib' )
],
PRE_PROCESS => 'config/main',
WRAPPER => 'site/wrapper',
ERROR => 'error.tt2',
TIMER => 0,
WHILE_MAX => 100,
});
and also
'Directive::WHILE_MAX' => 100, (substitute for line above)
both had no effect!
The Catalyst::View::TT perldoc says to set config options in lib/MyApp.pm,
however, these are in lib/MyApp/View/TT.pm but seems to be doing the same
thing.
The config passing code is little difficult to follow, so perhaps an expert
tell me what I am getting wrong..
thanks,
-Kutbuddin
Matt Pitts wrote:
>
>> -----Original Message-----
>> From: Kutbuddin [mailto:ksdoctor at burnham.org]
>> Sent: Monday, January 26, 2009 2:50 PM
>> To: catalyst at lists.scsys.co.uk
>> Subject: [Catalyst] Setting Template Tookit WHILE_MAX from Catalyst
>>
>>
>> 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
>
> Haven't done it myself, but if there's not a documented config option or
> method for setting it, then I would just set it directly in your
> View/TT.pm as you've suggested.
>
> v/r
> -matt pitts
>
> _______________________________________________
> 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-tp21672356p21673995.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.
More information about the Catalyst
mailing list