> 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


_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to