Hi Viacheslav --
> Let's don't write plugins for every H:T-style module! Setting
> something
> like:
>
> $self ->{__CURRENT_TMPL_MODULE} = 'HTML::Template::Compiled';
>
> in your App will do all the job .
Not necessary. As people have said, there are numerous CGI-App plug-ins
which already do this. Even if you didn't want to use a plug-in you
could override load_tmpl() in your CGI-App subclass.
package My::CgiApp;
use base 'CGI::Application';
sub load_tmpl {
my $self = shift;
require 'HTML::Template::Compiled';
# ... Etc.
}
TTYL,
-Jesse-
--
Jesse Erlbaum
The Erlbaum Group
[EMAIL PROTECTED]
Phone: 212-684-6161
Fax: 212-684-6226
---------------------------------------------------------------------
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]