Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 32879 invoked from network); 28 Nov 2007 18:39:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2007 18:39:21 -0000 Received: (qmail 78904 invoked by uid 500); 28 Nov 2007 18:39:07 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 78834 invoked by uid 500); 28 Nov 2007 18:39:07 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 78820 invoked by uid 99); 28 Nov 2007 18:39:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 10:39:07 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.236.221.40] (HELO atmail5.turner.com) (64.236.221.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 18:39:10 +0000 X-IronPort-AV: E=Sophos;i="4.23,225,1194238800"; d="scan'208";a="340819450" Received: from atlbh02.turner.com ([10.188.157.232]) by atliport02.turner.com with ESMTP; 28 Nov 2007 13:38:50 -0500 Received: from ATLMSG13.turner.com ([10.188.170.53]) by ATLBH02.turner.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 28 Nov 2007 13:38:48 -0500 Received: from 10.188.174.6 ([10.188.174.6]) by ATLMSG13.turner.com ([10.188.170.53]) via Exchange Front-End Server atlwebaccess.turner.com ([10.188.157.195]) with Microsoft Exchange Server HTTP-DAV ; Wed, 28 Nov 2007 18:38:48 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Wed, 28 Nov 2007 13:38:50 -0500 Subject: Include variables as providers? From: "Akins, Brian" To: Message-ID: Thread-Topic: Include variables as providers? Thread-Index: Acgx7esEKXtAzJ3hEdywDQAX8tAlJw== Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 28 Nov 2007 18:38:48.0895 (UTC) FILETIME=[EA5BBCF0:01C831ED] X-Virus-Checked: Checked by ClamAV on apache.org I have a need to possible add more variables to mod_include (ie, DATE_LOCAL, DOCUMENT_URI) and also to have the variable act like tables. Something like "$CNNVAR{foo}". I was thinking that we could have get_include_var (and others) to use providers. Mod_include would only provide providers for the "normal" SSI stuff, but it would allow others to extend and/or replace them. Pseudo code: get_include_var(var, ctx) { /*do the regex stuff*/ /*parse out var and key from $foo{bar}, if present*/ if(provider = ap_provider_get(var)) { provider->do_stuff(var, key) /*key may be NULL*/ } else { /*error*/ } } Thoughts? -- Brian Akins Chief Operations Engineer Turner Digital Media Technologies