Hi,
Thanks for the reply.
I see two ways to obtain TT2 configuration values in the TT2 template:
Bill Moseley wrote:
>
> [%
> USE foo = Class( 'Whatever::View::TT' );
> USE Dumper; Dumper.dump(foo.config ) | stderr;
> %]
and
Robert 'phaylon' Sedlacek wrote:
>
> The merged configuration will be usually (if not implemented
otherwise) in
> the controller instance directly. So the best way might be
>
> package MyApp::View::TT
> ...
> sub the_config_you_want {
> my ($self) = @_;
> return $self->{the_config_you_want};
> }
>
> and then in the template
>
> [% c.view('TT').the_config_you_want %]
Cheers,
jec
_______________________________________________
List: [EMAIL PROTECTED]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/