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.


The data (params) for that template are taken from the CGI query and an associated data file (associated to the template).

I found out that this is a very effective way to break out the template-specific preparation of the data
from the main Perl code.
You only need to write runmodes that actually do something (update the database, for example),
pure display of results can be handled by the template (and datafile) itself.



What do you think?


Thilo






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