> From: Jason Bodnar
>
> Is it possible to use both HTML::Template::Expr and
> HTML::Template::Pluggable with
> CGI::Application::Plugin::AnyTemplate?
>
Sure can! For instance, I use both H::T::Expr and the Template Toolkit. You
can set up multiple configs in your cgiapp_init method:
$self->template->config(
default_type => 'HTMLTemplateExpr', ... Other options
$self->template('tt')->config(
default_type => 'TemplateToolkit', .. Other options
Then to write to a HTML::Template::Expr template in your run mode, simply go
my $template = $self->template->load;
And to use Template Toolkit, go
$self->template('tt')->load
Over a few months, I used CAP::AnyTemplate to migrate from H::T to
H::T::Expr and finally to TT, which I found to be the best for my needs.
YMMV
Dan
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]