Sure, if you pass it in...
i.e. in your sub definition:
sub foo {
my ( $c ) = @_;
. . .
}
And in your TT2:
[% foo( Catalyst ); %]
Oliver Block wrote:
Hello group,
I wonder if it's possible to access the the context from within a sub serving
as filter for mytemplate.tt2?
Is that possible?
tia,
Oliver Block
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
--
Inbound and outbound email scanned for spam and viruses by the
DoubleCheck Email Manager: http://www.doublecheckemail.com
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/