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

Petko Yotov 5ko at 5ko.fr
Fri Feb 21 10:51:43 CST 2014


John Rankin writes:
> doesn't need $pagename. I'd still like to see an 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, $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?

Petko




More information about the pmwiki-users mailing list