[Catalyst] Setting Template Tookit WHILE_MAX from Catalyst
jshirley at gmail.com
Mon Jan 26 22:54:28 GMT 2009
On Mon, Jan 26, 2009 at 1:57 PM, Kutbuddin <ksdoctor at burnham.org> wrote:
> OK.. so how?
> I tried :
> 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
> The config passing code is little difficult to follow, so perhaps an expert
> tell me what I am getting wrong..
This is not a configuration option, it is a perl variable. You set it
like any other perl variable:
$Template::Directive::WHILE_MAX = 100;
... rest of your code ...
This is just perl, nothing else. No magic.
More information about the Catalyst