stas 01/10/21 23:35:48 Modified: src/devel/writing_tests writing_tests.pod Log: - document the reasons for autoconfig magic in test handlers Revision Changes Path 1.14 +24 -0 modperl-docs/src/devel/writing_tests/writing_tests.pod Index: writing_tests.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/devel/writing_tests/writing_tests.pod,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- writing_tests.pod 2001/10/20 10:48:33 1.13 +++ writing_tests.pod 2001/10/22 06:35:47 1.14 @@ -1279,6 +1279,28 @@ PerlSetVar Foo Bar </Location> +This autoconfiguration feature was added to: + +=over + +=item * + +simplify (less lines) test configuration. + +=item * + +ensure unique namespace for E<lt>Location ...E<gt>'s. + +=item * + +force E<lt>Location ...E<gt> names to be consistent. + +=item * + +prevent clashes within main configuration. + +=back + If some directives are supposed to go to the base configuration, i.e. not to be automatically wrapped into C<E<lt>LocationE<gt>> block, you should use a special C<E<lt>BaseE<gt>>..C<E<lt>/BaseE<gt>> block: @@ -1303,6 +1325,8 @@ laziness, since most tests don't need to add directives to the base configuration and we want to keep the configuration sections in tests to a minimum and let Perl do the rest of the job for us. + + META: Virtual host?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]