[pmwiki-users] PublishPDF recipe updated to avoid /e modifier

John Rankin john.rankin at affinity.co.nz
Fri Feb 21 20:34:58 CST 2014

> John Rankin writes:
>> ... option in pmwiki's Markup_e
>> function that would let recipe authors write:
>> $r = 'return';
>> Markup_e($name, $when, $pattern, $replace, $r);
>> which would use $CallbackFnTemplates['return'] = 'return %s;';
> Added for 2.2.62.

Thank you!
>> A third option would be to write Markup_e($name, $when, $pattern,
>> $replace);
>> and let Markup_e decide which of the CallbackFnTemplates to use,
>> depending
>> on whether or not $replace contains $pagename.
> This is interesting but adds complexity and is less future-proof.
> Whether a markup rule requires or does not require $pagename, it will
> always
> work with the current default Markup_e(). What functional (ie. not
> aesthetic) problem do you see when it does not require $pagename?

It's purely aesthetic :-)

John Rankin

More information about the pmwiki-users mailing list