Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 72950 invoked from network); 4 May 2008 03:40:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2008 03:40:55 -0000 Received: (qmail 15938 invoked by uid 500); 4 May 2008 03:40:56 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 15924 invoked by uid 500); 4 May 2008 03:40:56 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 15913 invoked by uid 99); 4 May 2008 03:40:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 20:40:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Jeremy@malcolm.id.au designates 203.25.143.242 as permitted sender) Received: from [203.25.143.242] (HELO tardis.malcolm.id.au) (203.25.143.242) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2008 03:40:10 +0000 Received: from [117.102.146.251] by tardis.malcolm.id.au with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1JsV56-0006wr-R1; Sun, 04 May 2008 11:40:13 +0800 Message-Id: <2C612492-D1D2-44BE-A19C-030AD2142FFC@Malcolm.id.au> From: Jeremy Malcolm To: embperl@perl.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Embperl::Object::Execute syntax question Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 4 May 2008 11:40:06 +0800 X-Mailer: Apple Mail (2.919.2) X-Spam-Score: -0.7 (/) X-Spam-Report: -0.7/5.0 ---- Start SpamAssassin results * -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.3 SPF_FAIL SPF: sender does not match SPF record (fail) * [SPF failed: Please see http://www.openspf.org/why.html?sender=jeremy%40malcolm.id.au&ip=117.102.146.251&receiver=tardis.malcolm.id.au] * -0.5 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results X-Virus-Checked: Checked by ClamAV on apache.org I have a an Embperl::Object Web site with one .epl file that in some cases should use the template of the rest of the site, and in other cases should be templateless, depending on the state of a variable. So I have given it a different extension than the other files on the site to exclude it from Embperl::Object by default, and am trying to call Embperl::Object::Execute for the cases in which it does need to use the template. Here is a simplified test version of that page: [- use Embperl::Object; $to = "cruel"; $testpage = "

test

hello [+ $to +] world

"; Embperl::Object::Execute({ inputfile => '/var/www/press', input => \$testpage, escmode => 7, object_base => 'base.epl', appname => 'terminuspress' }); -] From experimentation, I've found that "inputfile" can be set to any existing file or directory; it is ignored but can't be omitted. I've also found that "appname" should be the same as the rest of the site. The problem is that "object_base" is not used: the template is not applied. Whether I include or exclude the full path doesn't matter. Any ideas what is wrong? TIA -- Jeremy Malcolm LLB (Hons) B Com Internet and Open Source lawyer, IT consultant, actor host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org|awk -F! '{print $3}' --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org