[pmwiki-users] PublishPDF recipe updated to avoid /e modifier
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.
>> A third option would be to write Markup_e($name, $when, $pattern,
>> and let Markup_e decide which of the CallbackFnTemplates to use,
>> 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
> 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 :-)
More information about the pmwiki-users