Viacheslav Sheveliov wrote:

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 .

I would vote not doing this in CGI::Application itself. I'd rather see C::A and H::T completely decoupled.

A more sensible place would be in CGI::Application::Plugin::AnyTemplate, but I could also see the use for a CAP::HtmlTemplate-ish plugin.

Something like

  use CGI::Application::Plugin::HtmlTemplateX 'HTML::Template::Compiled';

could export load_tmpl, using the supplied H::T derivative.

my 2 øre :)

Rhesa


---------------------------------------------------------------------
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]

Reply via email to