[pmwiki-devel] run-once-at-end rule

John Rankin john.rankin at affinity.co.nz
Wed Mar 2 19:49:32 CST 2011


On 3/03/11 2:34 PM, Peter Bowers wrote:
> What is the best way to get a rule that will run a single time at the
> end of rule processing?
Try something like:

$MarkupFrameBase['posteval']['myfooter'] =

     "\$out = onetimerule(\$out);"

However, it rather depends on what exactly this means:
> It will be setting a value for $HTMLFooterFmt,
I'm guessing you can have the onetimerule function simply return $out,
while it changes the value of the global $HTMLFooterFmt.

JR

-- 
John Rankin
Affinity Limited
T 64 4 495 3737
F 64 4 473 7991
M 021 RANKIN
john.rankin at affinity.co.nz
www.affinity.co.nz




More information about the pmwiki-devel mailing list