[Templates-cvs] cvs commit: Template2/docsrc/lib/option output

cvs@template-toolkit.org cvs@template-toolkit.org


cvs         06/01/30 14:10:37

  Modified:    docsrc/lib/option output
  Log:
  * fixed typo
  
  Revision  Changes    Path
  1.4       +11 -14    Template2/docsrc/lib/option/output
  
  Index: output
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/lib/option/output,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- output	2002/07/09 14:42:38	1.3
  +++ output	2006/01/30 14:10:37	1.4
  @@ -20,7 +20,7 @@
   example 1 (file name):
   
       my [* obj *] = [* pkg *]->new({
  -	OUTPUT => "/tmp/foo",
  +        OUTPUT => "/tmp/foo",
       });
   
   example 2 (text string):
  @@ -28,7 +28,7 @@
       my $output = '';
   
       my [* obj *] = [* pkg *]->new({
  -	OUTPUT => \$output,
  +        OUTPUT => \$output,
       });
   
   example 3 (file handle):
  @@ -36,7 +36,7 @@
       open (TOUT, "> $file") || die "$file: $!\n";
   
       my [* obj *] = [* pkg *]->new({
  -	OUTPUT => \*TOUT,
  +        OUTPUT => \*TOUT,
       });
   
   example 4 (subroutine):
  @@ -44,24 +44,24 @@
       sub output { my $out = shift; print "OUTPUT: $out" }
   
       my [* obj *] = [* pkg *]->new({
  -	OUTPUT => \&output,
  +        OUTPUT => \&output,
       });
   
   example 5 (array reference):
   
       my [* obj *] = [* pkg *]->new({
  -	OUTPUT => \@output,
  +        OUTPUT => \@output,
       })
   
   example 6 (Apache/mod_perl handler):
   
       sub handler {
  -	my $r = shift;
  +    my $r = shift;
   
  -	my $t = Template->new({
  -	    OUTPUT => $r,
  -	});
  -	...
  +    my $t = Template->new({
  +        OUTPUT => $r,
  +    });
  +    ...
       }
   
   The default OUTPUT location be overridden by passing a third parameter
  @@ -69,12 +69,9 @@
   above argument types.
   
       $t->process($file, $vars, "/tmp/foo");
  -    $t->process($file, $vars, "bar");
  +    $t->process($file, $vars, \$output);
       $t->process($file, $vars, \*MYGLOB);
       $t->process($file, $vars, \@output); 
       $t->process($file, $vars, $r);  # Apache::Request
       ...
  -
  -
  -