On Tue, 27 Sep 2005, Shelly Brown wrote: > I would like to include a PERL file within an html or asp file. How do I do > that? I'm working on a Windows server.
You're looking for a templating framework. Perl offers several, including: Template Toolkit ("TT") HTML::Template HTML::Mason (or simply "Mason") Mason embeds snippets of Perl in your HTML, much like ASP or JSP does. This isn't necessarily the best way to go though -- a lot of people feel it's cleaner to keep the templates isolated from as much of the program logic as possible. That way, you can have separate groups working on your application logic and on your interface, and changes on one side are much less likely to cause problems with the other. HTML::Template makes this kind of isolation much simpler, while Template Toolkit is flexible enough that you can use it in a large variety of ways, from ASP/JSP/Masons style elbedding to HTML::Template style separation of code & templates, to processing everything offline, batch mode, so that you're just serving flat HTML. This makes for less dynamic sites, but very fast ones and very portable ones. All of these frameworks behave most happily within the Apache web server, but while that will work just fine on Windows, most people running sites on Windows seem to prefer IIS. I *think* they can all be embedded with IIS/Perl, but I have no experience with that. -- Chris Devers Çw{ï~ ÀÍÇ
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>