01557: Support Closures in FmtPV

Summary: Support Closures in FmtPV
Created: 2026-06-04 08:41
Status: Open
Category: Feature
From: simon
Assigned:
Priority: 1
Version: latest
OS: n/a

Description: Just an idea for the future

Allow $FmtPV to support closures

e.g.

# {$PageCount}
$FmtPV['$PageCount'] = function($pagename) use ($tcPageName) {
    return number_format(
        intval($GLOBALS[KEYTOTALCOUNTER][KEYPAGES][$tcPageName] ?? 0)
        );
    };  

simon