perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: is there a templating system that....
Date Fri, 12 Aug 2005 21:02:06 GMT
On Fri, 2005-08-12 at 15:45 -0500, David Nicol wrote:
>      my $output = $TemplateCache{$template_name};
>      $output =~ s/\[(\w+)\]/$InsertableVariables{$1}/g;
>      print $output;

The second it gets more complex than that, stop and use one from CPAN.

> SSI sounds like PHP.

PHP is a full-fledged programming language.  SSI is a venerable system
for doing simple variable substitutions and includes in web pages, and
you already have it.  With apache 2, you can use it as a filter after
your perl handler.

Here's an intro:
http://www.onlamp.com/pub/a/apache/2005/07/07/apache_xssi.html

- Perrin


Mime
View raw message