That definitely sounds useful. I think you can get the same effect, though, by using the existing 2.0/2.1 mod_include hook to add new directives... something like this: <!--#set_random var="blah" min="$min" max="$max" -->
That's not quite as syntactically elegant, but it has the advantage of not requiring any new parsing code. What do you think?
Brian
On Mar 11, 2004, at 6:46 AM, Andre Breiler wrote:
Hi,
I wonder what your opinion is on having functions in addition to variables
in SSIs.
An example would be <--#set var="blah" value="random($min,$max)" --> .
My idea is to make ap_ssi_parse_string aware of functions and call a function which does the SSI function parsing/calling. In addition I'd export a function so that other modules can register SSI functions as well.
Andre
--
Andre' Breiler | Tel: +44 (0) 1628 407777
BBC Internet Services | URL: http://support.bbc.co.uk
Maiden House, Vanwell Road |
Maidenhead, SL6 4UB | Mail me if possible. And use a Subject line.