[Templates-cvs] cvs commit: Template2/docsrc/src/Manual Internals.tt2

cvs@template-toolkit.org cvs@template-toolkit.org
Thu, 24 Jul 2003 17:10:35 +0100


cvs         03/07/24 16:10:35

  Modified:    docsrc/src/Manual Internals.tt2
  Log:
  Some correctness changes
  
  Revision  Changes    Path
  1.4       +3 -3      Template2/docsrc/src/Manual/Internals.tt2
  
  Index: Internals.tt2
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/src/Manual/Internals.tt2,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Internals.tt2	2002/11/01 18:56:52	1.3
  +++ Internals.tt2	2003/07/24 16:10:35	1.4
  @@ -62,7 +62,7 @@
   all of this complexity is hidden away behind a simple template()
   method.  You call it passing a template name as an argument, and it
   returns a compiled template in the form of a Template::Document
  -object, or otherwise raises an exeception.
  +object, or otherwise raises an exception.
   
   A B<Template::Document> is a thin object wrapper around a compiled 
   template subroutine.  The object implements a process() method which
  @@ -229,7 +229,7 @@
   
   This translates to the stash get() call:
   
  -    $stash->get('title', ['The Cat Sat on the Mat']);
  +    $stash->get([ 'title', ['The Cat Sat on the Mat'] ]);
   
   Dotted compound variables can be requested by passing a single 
   list reference to the get() method in place of the variable 
  @@ -297,7 +297,7 @@
          blah blah blah
       [% END %]
   
  -    my $filter = $stash->filter('bar', [20]);
  +    my $filter = $context->filter('bar', [20]);
       &$filter('blah blah blah');
   
   Pretty much everything else you might want to do in a template can be done