[Pmwiki-users] Re: calculating directives ?

J. Meijer commentgg
Fri Jun 18 15:19:37 CDT 2004


Knut, I published some formula-evaluation code before using a ((..)) syntax.
I made a revision since then to use variables, I'll adapt it to your syntax
and pass it tomorrow.
Probably.

-jm



From: Knut Alboldt <alboldt at gmx.net>
Subject: [Pmwiki-users] calculating directives ?

I like PmWiki as a allround publishing tool. I even experiment at my
"home"-wiki to use it to hold addresses and writing letters :-)

I thought of writing a cookbook-recipe to implement pmwiki-directives to do
inline calculations e.g.

[[calc $var=expression]] to set a variable without displaying the result
[[show $var=expression]] to set the variable and displaying the result in
the wikitext
[[show expression]] incl [[show $var]] to show the result in the wiki-text

I thought of evaluating php-functions for the expressions and assignments
maybe added by some user-written php-functions

Any comments / ideas on that ?
May this be of global interest




More information about the pmwiki-users mailing list