Bug 68359 - Check if a macro is already defined
Summary: Check if a macro is already defined
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_macro (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-18 13:25 UTC by Marc Stern
Modified: 2023-12-18 13:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Stern 2023-12-18 13:25:07 UTC
When assembling multiple parts of a configuration (like a part for the whole company, then a part for each application), we sometimes need to define a macro "locally" (for an application) until it's defined "globally" (at the company level). Then, when defined globally (and deployed), the local version shouldn't be used anymore.

It would be very handy to have a directive allowing to check if a macro is already defined, like IfDirective. Examples of use:

<IfMacro Macro1>
 Use Macro1 ...
</IfMacro>

<IfMacro !Macro2>
 <Macro Macro2 ...>
  ...
 </Macro>
</IfMacro>
Use Macro2 ...