On 09/09/09 19:14, [email protected] wrote: > Hello, > > I'm looking into learning Perl over PHP, but the one thing I really > like about PHP is that you can embed code directly in the web page. > > I was wondering if TT allows you to do the same thing, or something > similar, or if you still have to go through the cgi-bin directory to > make it work. > > I may not be explaining myself correctly, since I really don't know > Perl, but what I'm looking for is a way to embed Perl code, or > placeholders, directly in my static web pages. The perl cart we're > using now does not allow us to "paste" it's functionality in the other > pages since they're outside the cgi directory.
There's no built-in way to do this, but it's really not hard to do if you have access to the web server configuration. You might have a look at Apache::Template (http://search.cpan.org/dist/Apache-Template/) for some ideas about how you might do it - but I should point out that Apache::Template is written for Apache 1.x and almost certainly won't work for Apache 2.x without considerable work. > On a side note, does anyone know if Perl 6 is planning to include a > templating system of some sort, or if it will make it easier to embed > functionality directly into web pages? Just curious. Perl 6 will do everything. Apparently :-) Cheers, Dave... _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
