Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 39856 invoked from network); 12 Aug 2005 21:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Aug 2005 21:02:52 -0000 Received: (qmail 12886 invoked by uid 500); 12 Aug 2005 21:02:44 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 12863 invoked by uid 500); 12 Aug 2005 21:02:44 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 12850 invoked by uid 99); 12 Aug 2005 21:02:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 14:02:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 207.114.11.197 is neither permitted nor denied by domain of perrin@elem.com) Received: from [207.114.11.197] (HELO ns1.plusthree.com) (207.114.11.197) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 14:03:05 -0700 Received: from [10.0.1.201] (varick-236-218.180VarickStreet.com [216.223.218.236]) (authenticated bits=0) by ns1.plusthree.com (8.13.1/8.13.1) with ESMTP id j7CKtHj5016392 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 12 Aug 2005 16:55:18 -0400 Subject: Re: is there a templating system that.... From: Perrin Harkins To: rapnap@tipjar.com Cc: Jonathan Vanasco , mod_perl List In-Reply-To: <934f64a205081213452034a47e@mail.gmail.com> References: <517bbf8849b3207acf58d013ef774402@mastersofbranding.com> <1123876206.5161.152.camel@localhost.localdomain> <045fe786ed8eb96362d837d1d4a2633d@mastersofbranding.com> <934f64a205081213452034a47e@mail.gmail.com> Content-Type: text/plain Date: Fri, 12 Aug 2005 17:02:06 -0400 Message-Id: <1123880526.5161.181.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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