On Wed, 8 Sep 2004, Octavian Rasnita wrote:
Is there a way to embed Perl programs in html like PHP can do?
I heard that Perl can be used in ASP files, but I am wondering if there is
an Apache module for that task.
Basically, you're asking about templating systems for Perl.
You have several to choose from. These include:
HTML::Template
Simple, does a good job of separating the content templates from
the application logic; not as flexible as some others
HTML::Mason
Puts the Perl right in with the HTML, like PHP does. This makes it
very popular with some people, but is seen by others as defeating
the purpose of using templates to begin with -- the idea being that
you should always keep logic & presentation strictly separated.
Template::Toolkit
Probably the most flexible framework, TT can be tuned to work in
modes similar to both HTML::Template and Mason, and more. It's also
suitable for non HTML/WWW work -- generation of about any kind of
document, from ascii to LaTeX to PDF to Word & Excel, either
dynamically on demand or statically in batches. TT is nice...
Embperl
This one I don't know much about, but some people like it.
There are others, but these are the big ones.
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>