Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Apache::Config::PreproUseraContributed Perl DApache::Config::Preproc::macro(3)

NAME
       Apache::Config::Preproc::macro -	expand macro statements

SYNOPSIS
	   $x =	new Apache::Config::Preproc '/path/to/httpd.conf',
		       -expand => [ qw(macro) ];

	   $x =	new Apache::Config::Preproc '/path/to/httpd.conf',
		       -expand => [ { macro => [ keep => $listref ] } ];

DESCRIPTION
       Processes Macro and Use statements (see mod_macro) in the Apache
       configuration parse tree.

       Macro statements	are removed. Each Use statement	is replaced by the
       expansion of the	macro named in its argument.

       The constructor accepts the following arguments:

       keep => $listref
	   List	of macro names to exclude from expanding. Each <Macro> and Use
	   statement with a name from $listref as its first argument will be
	   retained in the parse tree.

	   As a	syntactic sugar, $listref can also be a	scalar value. This is
	   convenient when a single macro name is to be	retained.

SEE ALSO
       Apache::Config::Preproc

perl v5.32.0			  2020-01-18 Apache::Config::Preproc::macro(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Apache::Config::Preproc::macro&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help