On 2004-10-11, Thilo Planz <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I wanted to get some opinions on a new plugin I wrote before maybe
> putting it to CPAN:
>
> http://perl-pad.sourceforge.net/cgiapp/HtmlTemplate.html
>
> http://perl-pad.sourceforge.net/cgiapp/CGI-Application-Plugin-
> HtmlTemplate-0.01.tar.gz
>
>
> It basically provides a runmode that can directly display an
> HTML::Template.
> It gets the required template from the path_info of the URL.
This is a neat idea, and I encourage you to publish it on CPAN.
However, I strongly recommend a different name. :) The current name
sounds like you are adding support for HTML::Template to CGI::App
as a plugin...which doesn't make sense.
I would name it after /what/ it does, rather than /how/ it does it.
From what I can tell, someone could sub-class your module, and possibly
re-implement without using HTML::Template! :)
I see two primary functions of your module:
- An easy and consistent way to server static and nearly static pages
from within the CGI::App framework. By passing static pages
though this system, it would be easily to apply the same
authorization system to both dynamic and static pages.
(I know Jesse would probably advocate writing your own
Apache auth handler for this...)
- A new and novel way of managing HTML::Template input:
keeping the input for each template in it's own file.
I don't really see the use of this. :)
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
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]