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

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


cvs         06/01/30 18:36:09

  Modified:    docsrc/src/Manual VMethods.tt2
  Log:
  * documented list.defined and hash.defined
  
  Revision  Changes    Path
  1.7       +10 -0     Template2/docsrc/src/Manual/VMethods.tt2
  
  Index: VMethods.tt2
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/src/Manual/VMethods.tt2,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- VMethods.tt2	2006/01/30 18:32:02	1.6
  +++ VMethods.tt2	2006/01/30 18:36:09	1.7
  @@ -270,6 +270,16 @@
   
       [% results.size %] search results matched your query
   
  +=item defined
  +
  +Returns a true or false value if the item in the list denoted by the
  +argument is defined.
  +
  +    [% list.defined(3) ? 'yes' : 'no' %]
  +
  +When called without any argument, list.defined returns true if the list
  +itself is defined (e.g. the same effect as scalar.defined).
  +
   =item reverse
   
   Returns the items of the list in reverse order.