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