[pmwiki-devel] Proposal: "Directives" Registry

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 9 12:24:25 CDT 2007

On Thu, Aug 09, 2007 at 01:21:18PM -0400, Ben Wilson wrote:
> On 8/9/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > One very nice advantage of the ProcessDirectives() approach is
> > that it could replace a large number of core and recipe markup
> > rules with a single rule.  Currently the core has about 20
> > items in the 'directives' stage of processing -- replacing those
> > separate rules with a single rule could substantially improve
> > markup processing.
> >
> > However, we could easily do this within the MarkupDirective()
> > function I've given above, by using something like ProcessDirectives()
> > for directives with a $when parameter of 'directives', but
> > using the normal Markup() table for everything else.  That
> > could be a big win.
> Thanks, Patrick. I was scratching my head for a way to limit adverse
> impact. I think your response resolves that. If you like, I'll code
> the draft this evening and pass it to you. Although, it looks like the
> examples are about "there."

I just need to think about it a bit further to decide if this really
belongs in the core -- if so, then I'll probably add MarkupDirective()
into an upcoming beta.


More information about the pmwiki-devel mailing list