My two cents on load_tmpl:
In my work I found that its behavior was not to my taste/needs so ended up overriding it anyway. From the responses, it seems that others have too. Therefore, I concur with William McKee when we says:
load_tmpl should be an abstract method that
must be overridden in the subclassed module
(just like setup)
--Fred
[ Why did I override load_tmpl? A: I didn't want my app to die when a template was not found, I wanted a more graceful failure mode (at least from the user's point of view) ]
=============================================================================
Fred Kleindenst suppressed
Internet Platforms
310.302.3801
-----Original Message-----
From: William McKee [mailto:suppressed
Sent: Friday, April 09, 2004 10:54 AM
To: Emanuele Zeppieri
Cc: suppressed
Subject: Re: [cgiapp] load_tmpl() question.
On Fri, Apr 09, 2004 at 05:04:54PM +0200, Emanuele Zeppieri wrote:
> But then your considerations should apply also to the *existing*
> load_tmpl() method, since it is a method conceived exactly as an
> "interface to different contructors/methods of other commonly used
> modules", as you said.
I don't think you'll get any argument about this issue from folks who
don't use HTML::Template for their template engine. It's legacy code
that constantly comes into discussions about how to integrate other
template engines with C::A.
My current opinion is that load_tmpl should be an abstract method that
must be overridden in the subclassed module (just like setup). Plugin
libraries could then be provided to handle the load_tmpl method or you
can roll your own solution.
Cheers,
William
--
Knowmad Services Inc.
http://www.knowmad.com
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.