Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 25933 invoked from network); 4 Jul 2008 06:25:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 06:25:53 -0000 Received: (qmail 83797 invoked by uid 500); 4 Jul 2008 06:25:54 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 83651 invoked by uid 500); 4 Jul 2008 06:25:53 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 83640 invoked by uid 99); 4 Jul 2008 06:25:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 23:25:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Janne.Jalkanen@ecyrd.com designates 193.64.5.122 as permitted sender) Received: from [193.64.5.122] (HELO mail.ecyrd.com) (193.64.5.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 06:25:00 +0000 Received: from [192.168.0.10] (cs181005170.pp.htv.fi [82.181.5.170]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ecyrd.com (Postfix) with ESMTP id 2FB7848062 for ; Fri, 4 Jul 2008 09:24:50 +0300 (EEST) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <486D3D45.7010800@altheim.com> References: <486BDABC.3090900@altheim.com> <35937F11-9C7F-432D-A06D-DAFD9A902AE1@mac.com> <486D3D45.7010800@altheim.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <48E2FB34-0CE8-45BB-BA76-1BEBF3EFD8AF@ecyrd.com> Content-Transfer-Encoding: 7bit From: Janne Jalkanen Subject: Re: aliases? Date: Fri, 4 Jul 2008 09:24:47 +0300 To: jspwiki-user@incubator.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org >> Is it possible to write another plugin similar to InsertPage (call it >> 'MacroPlugin') that inserts the contents of another page *before* any >> contained plugins are invoked? > > It's *possible* but not easy -- you'd have to hook up the renderer to > process the content recursively backward to the first inclusion. This > would be outside the normal page processing, the plugin responsible > basically for everything. Actually, it is very easy. Use a filter, e.g. http://www.jspwiki.org/wiki/StampFilter You can declare any sort of markup you want. Works inside plugins and everything; you just have to hook it up to the preTranslate() callback. /Janne