Re: functions in SSI

2004-03-15 Thread Brian Pane
On Mar 12, 2004, at 11:01 AM, Andre Breiler wrote: Hi, On Fri, 12 Mar 2004, Brian Pane wrote: 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: That's not quite as syntac

Re: functions in SSI

2004-03-12 Thread Patrick Welche
On Fri, Mar 12, 2004 at 01:53:20PM -0500, Mike Friedman wrote: > > On Mar 12, 2004, at 1:40 PM, Patrick Welche wrote: > > >.. and if we are talking wish-list, I have often wanted to do something > >like > > > >filename" --> > > > > How about > > :) OK, you can pick yourself of the floor and s

Re: functions in SSI

2004-03-12 Thread Andre Breiler
Hi, On Fri, 12 Mar 2004, Brian Pane wrote: > 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: > > > That's not quite as syntactically elegant, but it has the advanta

Re: functions in SSI

2004-03-12 Thread Mike Friedman
On Mar 12, 2004, at 1:40 PM, Patrick Welche wrote: .. and if we are talking wish-list, I have often wanted to do something like filename" --> How about :) BTW, while we're discussing mod_include, you folks might be interested in a patch I posted a while ago for sticking query string values i

Re: functions in SSI

2004-03-12 Thread André Malo
* Patrick Welche <[EMAIL PROTECTED]> wrote: > .. and if we are talking wish-list, I have often wanted to do something > like > > filename" --> > > or somesuch less contrived, but nested example. This example is bad since 'include file' takes only paths below the current one. However, you should

Re: functions in SSI

2004-03-12 Thread Patrick Welche
.. and if we are talking wish-list, I have often wanted to do something like filename" --> or somesuch less contrived, but nested example. Cheers, Patrick

Re: functions in SSI

2004-03-12 Thread Brian Pane
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: That's not quite as syntactically elegant, but it has the advantage of not requiring any new parsing code. What do you thin

functions in SSI

2004-03-11 Thread Andre Breiler
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