[Templates-cvs] cvs commit: Template2/docsrc/src/Modules/Template/Plugin/XML Simple.tt2

cvs@template-toolkit.org cvs@template-toolkit.org
Fri, 24 Sep 2004 07:48:24 +0100


cvs         04/09/24 06:48:24

  Modified:    docsrc/src/Modules/Template/Plugin/XML Simple.tt2
  Log:
  * update synopsis to include new usage
  
  Revision  Changes    Path
  1.3       +8 -1      Template2/docsrc/src/Modules/Template/Plugin/XML/Simple.tt2
  
  Index: Simple.tt2
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/src/Modules/Template/Plugin/XML/Simple.tt2,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Simple.tt2	2003/04/23 12:54:52	1.2
  +++ Simple.tt2	2004/09/24 06:48:24	1.3
  @@ -1,8 +1,15 @@
   [% TAGS star -%]
   =head1 SYNOPSIS
   
  -    # load plugin and specify XML file to parse
  +    # load plugin and specify XML text or file to parse
       [% USE xml = XML.Simple(xml_file_or_text) %]
  +
  +    # or load plugin as an object...
  +    [% USE xml = XML.Simple %]
  +
  +    # ...then use XMLin or XMLout as usual
  +    [% xml.XMLout(data_ref, args) %]
  +    [% xml.XMLin(xml_file_or_text, args) %]
   
   =head1 DESCRIPTION