[pmwiki-users] Proposed change to pmwiki.php: Markup_e

John Rankin john.rankin at affinity.co.nz
Thu Feb 6 20:28:35 CST 2014


> I think we can add this. Why the key is named markup_c? This template can
> be
> used on many places which call PCCF(), is there a better key name?

'return' would be a clearer (and shorter) key name

If a very short key name is acceptable, how about 'r'? Then we could write

  Markup_e( ... , 'r');

Thanks!
>
> John Rankin writes:
>> I'd like to suggest a small change to the pmwiki core:
>>
>> $CallbackFnTemplates = array(
>>   ...,
>>   'markup_c' => 'return %s;',
>>   ...,
>> );
>>
>> ...
>>
>> function Markup_e($id, $when, $pat, $rep, $tmpl='markup_e') {
>>   if (!is_callable($rep)) $rep = PCCF($rep, $tmpl);
>>   Markup($id, $when, $pat, $rep);
>> }
>>
>>

-- 
John Rankin




More information about the pmwiki-users mailing list