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

Reply via email to