[Templates-cvs] cvs commit: Template2/docsrc/lib/misc plugins

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


cvs         06/01/30 13:58:42

  Modified:    docsrc/lib/misc plugins
  Log:
  * fixed typo
  
  Revision  Changes    Path
  1.5       +12 -195   Template2/docsrc/lib/misc/plugins
  
  Index: plugins
  ===================================================================
  RCS file: /template-toolkit/Template2/docsrc/lib/misc/plugins,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugins	2002/11/22 14:19:57	1.4
  +++ plugins	2006/01/30 13:58:42	1.5
  @@ -42,7 +42,7 @@
   Provides an interface to data stored in a plain text file in a simple
   delimited format.  The first line in the file specifies field names
   which should be delimiter by any non-word character sequence.
  -Subsequent lines define data using the same delimiter as int he first
  +Subsequent lines define data using the same delimiter as in the first
   line.  Blank lines and comments (lines starting '#') are ignored.  See
   L<Template::Plugin::Datafile> for further details.
   
  @@ -89,21 +89,10 @@
   
   =head2 DBI
   
  -The DBI plugin, developed by Simon Matthews
  -E<lt>sam@knowledgepool.comE<gt>, brings the full power of Tim Bunce's
  -E<lt>Tim.Bunce@ig.co.ukE<gt> database interface module (DBI) to your
  -templates.  See L<Template::Plugin::DBI> and L<DBI> for further details.
  +The DBI plugin is no longer distributed as part of the Template Toolkit
  +(as of version 2.15).  It is now available as a separate Template-Plugin-DBI 
  +distribution from CPAN.
   
  -    [% USE DBI('dbi:driver:database', 'user', 'pass') %]
  -
  -    [% FOREACH user = DBI.query( 'SELECT * FROM users' ) %]
  -       [% user.id %] [% user.name %]
  -    [% END %]
  -
  -The DBI and relevant DBD modules are available from CPAN:
  -
  -  http://www.cpan.org/modules/by-module/DBI/
  -
   =head2 Dumper
   
   The Dumper plugin provides an interface to the Data::Dumper module.  See
  @@ -160,129 +149,14 @@
       [% USE bold = format('<b>%s</b>') %]
       [% bold('Hello') %]
   
  -=head2 GD::Image, GD::Polygon, GD::Constants
  +=head2 GD
   
  -These plugins provide access to the GD graphics library via Lincoln
  -D. Stein's GD.pm interface.  These plugins allow PNG, JPEG and other
  -graphical formats to be generated.
  -
  -    [% FILTER null;
  -        USE im = GD.Image(100,100);
  -        # allocate some colors
  -        black = im.colorAllocate(0,   0, 0);
  -        red   = im.colorAllocate(255,0,  0);
  -        blue  = im.colorAllocate(0,  0,  255);
  -        # Draw a blue oval
  -        im.arc(50,50,95,75,0,360,blue);
  -        # And fill it with red
  -        im.fill(50,50,red);
  -        # Output image in PNG format
  -        im.png | stdout(1);
  -       END;
  -    -%]
  -
  -See L<Template::Plugin::GD::Image> for further details.
  -
  -=head2 GD::Text, GD::Text::Align, GD::Text::Wrap
  -
  -These plugins provide access to Martien Verbruggen's GD::Text,
  -GD::Text::Align and GD::Text::Wrap modules. These plugins allow the
  -layout, alignment and wrapping of text when drawing text in GD images.
  -
  -    [% FILTER null;
  -        USE gd  = GD.Image(200,400);
  -        USE gdc = GD.Constants;
  -        black = gd.colorAllocate(0,   0, 0);
  -        green = gd.colorAllocate(0, 255, 0);
  -        txt = "This is some long text. " | repeat(10);
  -        USE wrapbox = GD.Text.Wrap(gd,
  -         line_space  => 4,
  -         color       => green,
  -         text        => txt,
  -        );
  -        wrapbox.set_font(gdc.gdMediumBoldFont);
  -        wrapbox.set(align => 'center', width => 160);
  -        wrapbox.draw(20, 20);
  -        gd.png | stdout(1);
  -      END;
  -    -%]
  -
  -See L<Template::Plugin::GD::Text>, L<Template::Plugin::GD::Text::Align>
  -and L<Template::Plugin::GD::Text::Wrap> for further details.
  -
  -=head2 GD::Graph::lines, GD::Graph::bars, GD::Graph::points, GD::Graph::linespoin
  -ts, GD::Graph::area, GD::Graph::mixed, GD::Graph::pie
  -
  -These plugins provide access to Martien Verbruggen's GD::Graph module
  -that allows graphs, plots and charts to be created. These plugins allow
  -graphs, plots and charts to be generated in PNG, JPEG and other
  -graphical formats.
  -
  -    [% FILTER null;
  -        data = [
  -            ["1st","2nd","3rd","4th","5th","6th"],
  -            [    4,    2,    3,    4,    3,  3.5]
  -        ];
  -        USE my_graph = GD.Graph.pie(250, 200);
  -        my_graph.set(
  -                title => 'A Pie Chart',
  -                label => 'Label',
  -                axislabelclr => 'black',
  -                pie_height => 36,
  -                transparent => 0,
  -        );
  -        my_graph.plot(data).png | stdout(1);
  -      END;
  -    -%]
  -
  -See
  -L<Template::Plugin::GD::Graph::lines>,
  -L<Template::Plugin::GD::Graph::bars>,
  -L<Template::Plugin::GD::Graph::points>,
  -L<Template::Plugin::GD::Graph::linespoints>,
  -L<Template::Plugin::GD::Graph::area>,
  -L<Template::Plugin::GD::Graph::mixed>,
  -L<Template::Plugin::GD::Graph::pie>, and
  -L<GD::Graph>,
  -for more details.
  -
  -=head2 GD::Graph::bars3d, GD::Graph::lines3d, GD::Graph::pie3d
  -
  -These plugins provide access to Jeremy Wadsack's GD::Graph3d
  -module.  This allows 3D bar charts and 3D lines plots to
  -be generated.
  -
  -    [% FILTER null;
  -        data = [
  -            ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
  -            [    1,    2,    5,    6,    3,  1.5,    1,     3,     4],
  -        ];
  -        USE my_graph = GD.Graph.bars3d();
  -        my_graph.set(
  -            x_label         => 'X Label',
  -            y_label         => 'Y label',
  -            title           => 'A 3d Bar Chart',
  -            y_max_value     => 8,
  -            y_tick_number   => 8,
  -            y_label_skip    => 2,
  -            # shadows
  -            bar_spacing     => 8,
  -            shadow_depth    => 4,
  -            shadowclr       => 'dred',
  -            transparent     => 0,
  -        my_graph.plot(data).png | stdout(1);
  -      END;
  -    -%]
  -
  -See
  -L<Template::Plugin::GD::Graph::lines3d>,
  -L<Template::Plugin::GD::Graph::bars3d>, and
  -L<Template::Plugin::GD::Graph::pie3d>
  -for more details.
  +The GD plugins are no longer part of the core Template Toolkit distribution.
  +They are now available in a separate Template-GD distribution.
   
   =head2 HTML
   
  -The HTML plugin is very new and very basic, implementing a few useful
  +The HTML plugin is very basic, implementing a few useful
   methods for generating HTML.  It is likely to be extended in the future
   or integrated with a larger project to generate HTML elements in a generic
   way (as discussed recently on the mod_perl mailing list).
  @@ -382,54 +256,6 @@
   
       http://www.cpan.org/modules/by-module/Text/
   
  -=head2 XML::DOM
  -
  -The XML::DOM plugin gives access to the XML Document Object Module via
  -Clark Cooper E<lt>cooper@sch.ge.comE<gt> and Enno Derksen's 
  -E<lt>enno@att.comE<gt> XML::DOM module.  See L<Template::Plugin::XML::DOM> 
  -and L<XML::DOM> for further details.
  -
  -    [% USE dom = XML.DOM %]
  -    [% doc = dom.parse(filename) %]
  -
  -    [% FOREACH node = doc.getElementsByTagName('CODEBASE') %]
  -       * [% node.getAttribute('href') %]
  -    [% END %]
  -
  -The plugin requires the XML::DOM module, available from CPAN:
  -
  -    http://www.cpan.org/modules/by-module/XML/
  -
  -=head2 XML::RSS
  -
  -The XML::RSS plugin is a simple interface to Jonathan Eisenzopf's
  -E<lt>eisen@pobox.comE<gt> XML::RSS module.  A RSS (Rich Site Summary)
  -file is typically used to store short news 'headlines' describing
  -different links within a site.  This plugin allows you to parse RSS
  -files and format the contents accordingly using templates.  
  -See L<Template::Plugin::XML::RSS> and L<XML::RSS> for further details.
  -
  -    [% USE news = XML.RSS(filename) %]
  -   
  -    [% FOREACH item = news.items %]
  -       <a href="[% item.link %]">[% item.title %]</a>
  -    [% END %]
  -
  -The XML::RSS module is available from CPAN:
  -
  -    http://www.cpan.org/modules/by-module/XML/
  -
  -=head2 XML::Simple
  -
  -This plugin implements an interface to the L<XML::Simple|XML::Simple>
  -module.
  -
  -    [% USE xml = XML.Simple(xml_file_or_text) %]
  -
  -    [% xml.head.title %]
  -
  -See L<Template::Plugin::XML::Simple> for further details.
  -
   =head2 XML::Style
   
   This plugin defines a filter for performing simple stylesheet based 
  @@ -454,20 +280,11 @@
       [% END %]
   
   See L<Template::Plugin::XML::Style> for further details.
  -
  -=head2 XML::XPath
  -
  -The XML::XPath plugin provides an interface to Matt Sergeant's
  -E<lt>matt@sergeant.orgE<gt> XML::XPath module.  See 
  -L<Template::Plugin::XML::XPath> and L<XML::XPath> for further details.
  -
  -    [% USE xpath = XML.XPath(xmlfile) %]
  -    [% FOREACH page = xpath.findnodes('/html/body/page') %]
  -       [% page.getAttribute('title') %]
  -    [% END %]
   
  -The plugin requires the XML::XPath module, available from CPAN:
  +=head2 XML
   
  -    http://www.cpan.org/modules/by-module/XML/
  +The XML::DOM, XML::RSS, XML::Simple and XML::XPath plugins are no
  +longer distributed with the Template Toolkit as of version 2.15
   
  +They are now available in a separate Template-XML distribution.