/[Apache-SVN]/perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod
ViewVC logotype

Diff of /perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod	2004/12/14 20:59:39	111874
+++ perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod	2004/12/14 21:01:22	111875
@@ -656,7 +656,8 @@ wishes to perform.
 
 This callback receives three arguments (similar to
 C<L<Apache::TAKE1|/C_Apache__TAKE1_>>), the third of which is a
-string-valued scalar containing the text following the directive.
+string-valued scalar containing the remaining text following the
+directive line.
 
   sub MyParameter {
       my($self, $parms, $val) = @_;
@@ -671,6 +672,17 @@ C<L<Apache::OR_EXEC_ON_READ|/C_Apache__O
 
 META: complete the details, which are new to 2.0.
 
+To retrieve the contents of a custom "container" directive, use the
+C<L<Apache::Directive>> object's methods 
+C<L<as_hash|Apache::Directive/C_as_hash_>>
+or C<L<as_string|Apache::Directive/C_as_string_>> :
+
+  sub MyParameter {
+      my($self, $parms, $val) = @_;
+      my $directive = $parms->directive;
+      my $content = $directive->as_string;
+  }
+
 There is one other trick to making configuration containers work.  In
 order to be recognized as a valid directive, the I<L<name|/C_name_>>
 attribute must contain the leading C<E<lt>>.  This token will be

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26