Re: [Catalyst] Subclass Catalyst::View::TT to use Template::Foo instead of Template?

2009-01-28 Thread Tomas Doran
On 28 Jan 2009, at 19:05, Larry Leszczynski wrote: Or would it make sense to modify Catalyst::View::TT to accept a new config argument like TEMPLATE_CLASSNAME (that defaults to "Template")? That'd make perfect sense to me. It'd probably also make sense to have the Template factory, and the

[Catalyst] Subclass Catalyst::View::TT to use Template::Foo instead of Template?

2009-01-28 Thread Larry Leszczynski
Is there any straightforward way to create a subclass of Catalyst::View::TT so that $self->{template} is an instance of Template::Foo instead of Template? In e.g. Catalyst::View::TT::Foo I could call $self->SUPER::new() and then overwrite the resulting $self->{template} object, but at that point I