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

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


cvs         06/05/14 08:55:53

  Modified:    docsrc/src/Manual Variables.tt2
  Log:
  * added note on $Template::Stash::PRIVATE
  
  Revision  Changes    Path
  1.17      +5 -0      Template2/docsrc/src/Manual/Variables.tt2
  
  Index: Variables.tt2
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/src/Manual/Variables.tt2,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Variables.tt2	2004/10/04 10:08:48	1.16
  +++ Variables.tt2	2006/05/14 08:55:53	1.17
  @@ -150,6 +150,11 @@
       [% thing._private %]        # no output
       [% thing..hidden %]         # ERROR: unexpected token (..)
   
  +You can disable this feature by setting the $Template::Stash::PRIVATE
  +package variable to a false value.
  +
  +    $Template::Stash::PRIVATE = undef;   # now you can thing._private
  +
   To access a hash entry using a key stored in another variable, prefix
   the key variable with '$' to have it interpolated before use (see
   L<Variable Interpolation>).