[pmwiki-users] Page functions?

Dominique Faure dominique.faure at gmail.com
Thu Jun 8 09:56:30 CDT 2006


On 6/8/06, Joachim Durchholz <jo at durchholz.org> wrote:
> Hi all,
>
> is there a function-style alternative to page variables?
>
> I.e. I'd like to define something like {$add(x,y)} so that authors can
> write {$add(2,4)} and have it expand to 6.
> That's a *very* silly example, of course. In reality, I'd want to do
> something like {$retrieve(datasource,key)}.
>
> Regards,
> Jo
>

You may easily expand the
http://www.pmwiki.org/wiki/Cookbook/PageVariableExtensions recipe
providing your own function definitions.

Regards,
Dom




More information about the pmwiki-users mailing list