Re: Define variable in modules

2022-10-24 Thread William A Rowe Jr
It sounds like the desired change is , but there isn't a baked-in module revision field, not even a module release date that would be helpful here, so that isn't promising. IfDefine is a solution. Wouldn't solve this once and for all, for many use cases? Ship a patch for folks who want to rely

Re: Define variable in modules

2022-10-21 Thread Nick Gearls
Technically, it would work, and I actually did it in my own modules. But I'm afraid some people (at ModSecurity or in other modules) won't accept to misuse a feature :-( On 20-10-2022 20:35, Christophe JAILLET wrote: Le 20/10/2022 à

Re: Define variable in modules

2022-10-20 Thread Christophe JAILLET
Le 20/10/2022 à 15:55, Nick Gearls a écrit : Hello, It would sometimes be very handy to be able to define a variable (like -D on command-line or "Define xxx" in the config) inside a module. This would, for instance, allow to have a config file based on a define from the module, knowing if

Re: Define variable in modules

2022-10-20 Thread Eric Covener
On Thu, Oct 20, 2022 at 9:56 AM Nick Gearls wrote: > > Hello, > > It would sometimes be very handy to be able to define a variable (like -D on > command-line or "Define xxx" in the config) inside a module. > This would, for instance, allow to have a config file based on a define from > the