On 3/15/07, Bill Moseley <[EMAIL PROTECTED]> wrote:
On Thu, Mar 15, 2007 at 06:00:33PM +0000, Adeola Awoyemi wrote:
>
> On 15 Mar 2007, at 17:01, rahed wrote:
>
> >[% c.config.name %] in the template, nothing is shown.
>
> I think this needs to be:
>
> [% Catalyst.config.name %]
C::V::TT has:
sub template_vars {
my ( $self, $c ) = @_;
my $cvar = $self->config->{CATALYST_VAR};
defined $cvar
? ( $cvar => $c )
: (
c => $c,
base => $c->req->base,
name => $c->config->{name}
)
}
Thanks all,
I removed CATALYST_VAR line from TT configuration and context is c as suggested.
Radek
_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/