Permalink
Browse files

2.03

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@135 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent fa9c1c8 commit 31cb4818f2107d2de29bca7abaa65534e59b560f @abw committed Jun 15, 2001
Showing with 352 additions and 272 deletions.
  1. +7 −1 Changes
  2. +50 −8 README
  3. +0 −6 TODO
  4. +2 −2 bin/tpage
  5. +2 −2 bin/ttree
  6. +3 −3 docs/src/FAQ/FAQ.html
  7. +2 −2 docs/src/Library/HTML.html
  8. +2 −2 docs/src/Library/PostScript.html
  9. +2 −2 docs/src/Library/Splash.html
  10. +1 −1 docs/src/Manual/Config.html
  11. +2 −1 docs/src/Manual/Credits.html
  12. +1 −1 docs/src/Manual/Directives.html
  13. +1 −1 docs/src/Manual/Filters.html
  14. +1 −1 docs/src/Manual/Internals.html
  15. +1 −1 docs/src/Manual/Intro.html
  16. +1 −1 docs/src/Manual/Plugins.html
  17. +1 −1 docs/src/Manual/Refs.html
  18. +1 −1 docs/src/Manual/Syntax.html
  19. +1 −1 docs/src/Manual/Variables.html
  20. +1 −1 docs/src/Manual/Views.html
  21. +1 −1 docs/src/Modules/Template.html
  22. +2 −2 docs/src/Modules/Template/Base.html
  23. +2 −2 docs/src/Modules/Template/Config.html
  24. +2 −2 docs/src/Modules/Template/Constants.html
  25. +2 −2 docs/src/Modules/Template/Context.html
  26. +2 −2 docs/src/Modules/Template/Document.html
  27. +2 −2 docs/src/Modules/Template/Exception.html
  28. +2 −2 docs/src/Modules/Template/Filters.html
  29. +2 −2 docs/src/Modules/Template/Iterator.html
  30. +2 −2 docs/src/Modules/Template/Parser.html
  31. +2 −2 docs/src/Modules/Template/Plugin.html
  32. +2 −2 docs/src/Modules/Template/Plugin/Autoformat.html
  33. +2 −2 docs/src/Modules/Template/Plugin/CGI.html
  34. +1 −1 docs/src/Modules/Template/Plugin/DBI.html
  35. +2 −2 docs/src/Modules/Template/Plugin/Datafile.html
  36. +2 −2 docs/src/Modules/Template/Plugin/Date.html
  37. +2 −2 docs/src/Modules/Template/Plugin/Directory.html
  38. +2 −2 docs/src/Modules/Template/Plugin/Dumper.html
  39. +2 −2 docs/src/Modules/Template/Plugin/File.html
  40. +2 −2 docs/src/Modules/Template/Plugin/Format.html
  41. +2 −2 docs/src/Modules/Template/Plugin/Iterator.html
  42. +2 −2 docs/src/Modules/Template/Plugin/Pod.html
  43. +2 −2 docs/src/Modules/Template/Plugin/Table.html
  44. +2 −2 docs/src/Modules/Template/Plugin/URL.html
  45. +2 −2 docs/src/Modules/Template/Plugin/View.html
  46. +2 −2 docs/src/Modules/Template/Plugin/Wrap.html
  47. +1 −1 docs/src/Modules/Template/Plugin/XML/DOM.html
  48. +2 −2 docs/src/Modules/Template/Plugin/XML/RSS.html
  49. +2 −2 docs/src/Modules/Template/Plugin/XML/Simple.html
  50. +2 −2 docs/src/Modules/Template/Plugin/XML/XPath.html
  51. +2 −2 docs/src/Modules/Template/Plugins.html
  52. +2 −2 docs/src/Modules/Template/Provider.html
  53. +2 −2 docs/src/Modules/Template/Service.html
  54. +2 −2 docs/src/Modules/Template/Stash.html
  55. +2 −2 docs/src/Modules/Template/Test.html
  56. +7 −1 docs/src/Release/Changes.html
  57. +50 −8 docs/src/Release/README.html
  58. +0 −6 docs/src/Release/TODO.html
  59. +2 −2 docs/src/Tools/tpage.html
  60. +2 −2 docs/src/Tools/ttree.html
  61. +1 −1 docs/src/Tutorial/Datafile.html
  62. +1 −1 docs/src/Tutorial/Web.html
  63. +1 −1 docsrc/src/Release/Changes.tt2
  64. +0 −6 docsrc/src/Release/TODO.tt2
  65. +2 −2 lib/Template.pm
  66. +2 −2 lib/Template/Base.pm
  67. +2 −2 lib/Template/Config.pm
  68. +2 −2 lib/Template/Constants.pm
  69. +2 −2 lib/Template/Context.pm
  70. +2 −2 lib/Template/Document.pm
  71. +2 −2 lib/Template/Exception.pm
  72. +4 −4 lib/Template/FAQ.pod
  73. +2 −2 lib/Template/Filters.pm
  74. +2 −2 lib/Template/Iterator.pm
  75. +3 −3 lib/Template/Library/HTML.pod
  76. +3 −3 lib/Template/Library/PostScript.pod
  77. +3 −3 lib/Template/Library/Splash.pod
  78. +1 −1 lib/Template/Manual.pod
  79. +1 −1 lib/Template/Manual/Config.pod
  80. +2 −1 lib/Template/Manual/Credits.pod
  81. +1 −1 lib/Template/Manual/Directives.pod
  82. +1 −1 lib/Template/Manual/Filters.pod
  83. +1 −1 lib/Template/Manual/Internals.pod
  84. +1 −1 lib/Template/Manual/Intro.pod
  85. +1 −1 lib/Template/Manual/Plugins.pod
  86. +1 −1 lib/Template/Manual/Refs.pod
  87. +1 −1 lib/Template/Manual/Syntax.pod
  88. +1 −1 lib/Template/Manual/Variables.pod
  89. +1 −1 lib/Template/Manual/Views.pod
  90. +1 −1 lib/Template/Modules.pod
  91. +2 −2 lib/Template/Parser.pm
  92. +2 −2 lib/Template/Plugin.pm
  93. +2 −2 lib/Template/Plugin/Autoformat.pm
  94. +2 −2 lib/Template/Plugin/CGI.pm
  95. +1 −1 lib/Template/Plugin/DBI.pm
  96. +2 −2 lib/Template/Plugin/Datafile.pm
  97. +2 −2 lib/Template/Plugin/Date.pm
  98. +2 −2 lib/Template/Plugin/Directory.pm
  99. +2 −2 lib/Template/Plugin/Dumper.pm
  100. +2 −2 lib/Template/Plugin/File.pm
  101. +2 −2 lib/Template/Plugin/Format.pm
  102. +2 −2 lib/Template/Plugin/GD/Constants.pm
  103. +2 −2 lib/Template/Plugin/GD/Graph/area.pm
  104. +2 −2 lib/Template/Plugin/GD/Graph/bars.pm
  105. +2 −2 lib/Template/Plugin/GD/Graph/bars3d.pm
  106. +2 −2 lib/Template/Plugin/GD/Graph/lines.pm
  107. +2 −2 lib/Template/Plugin/GD/Graph/lines3d.pm
  108. +2 −2 lib/Template/Plugin/GD/Graph/linespoints.pm
  109. +2 −2 lib/Template/Plugin/GD/Graph/mixed.pm
  110. +2 −2 lib/Template/Plugin/GD/Graph/pie.pm
  111. +2 −2 lib/Template/Plugin/GD/Graph/pie3d.pm
  112. +2 −2 lib/Template/Plugin/GD/Graph/points.pm
  113. +2 −2 lib/Template/Plugin/GD/Image.pm
  114. +2 −2 lib/Template/Plugin/GD/Polygon.pm
  115. +2 −2 lib/Template/Plugin/GD/Text.pm
  116. +2 −2 lib/Template/Plugin/GD/Text/Align.pm
  117. +2 −2 lib/Template/Plugin/GD/Text/Wrap.pm
  118. +2 −2 lib/Template/Plugin/HTML.pm
  119. +2 −2 lib/Template/Plugin/Iterator.pm
  120. +2 −2 lib/Template/Plugin/Pod.pm
  121. +2 −2 lib/Template/Plugin/Table.pm
  122. +2 −2 lib/Template/Plugin/URL.pm
  123. +2 −2 lib/Template/Plugin/View.pm
  124. +2 −2 lib/Template/Plugin/Wrap.pm
  125. +1 −1 lib/Template/Plugin/XML/DOM.pm
  126. +2 −2 lib/Template/Plugin/XML/RSS.pm
  127. +2 −2 lib/Template/Plugin/XML/Simple.pm
  128. +2 −2 lib/Template/Plugin/XML/XPath.pm
  129. +2 −2 lib/Template/Plugins.pm
  130. +2 −2 lib/Template/Provider.pm
  131. +2 −2 lib/Template/Service.pm
  132. +2 −2 lib/Template/Stash.pm
  133. +2 −2 lib/Template/Stash/Context.pm
  134. +2 −2 lib/Template/Test.pm
  135. +2 −2 lib/Template/Tools/tpage.pod
  136. +2 −2 lib/Template/Tools/ttree.pod
  137. +1 −1 lib/Template/Tutorial.pod
  138. +1 −1 lib/Template/Tutorial/Datafile.pod
  139. +1 −1 lib/Template/Tutorial/Web.pod
  140. +1 −1 t/foreach.t
View
@@ -17,7 +17,7 @@
#========================================================================
#------------------------------------------------------------------------
-# Version 2.03 -
+# Version 2.03 - 15th June 2001
#------------------------------------------------------------------------
* Added new virtual methods 'item', 'list', 'hash' to each of scalar,
@@ -127,9 +127,15 @@
Khera <khera@kcilink.com>. Changed Makefile.PL to accept File::Spec
version 0.6 or later.
+* Fixed a bug in the FOREACH directive which would barf with the error
+ "undef error - loop is undefined" when DEBUG was enabled.
+
* Applied a patch from Eric Cholet to fix a bug in META data items not
correctly escaping ' and \ characters.
+* Applied another patch from Eric to fix "Use of uninitialised value"
+ warning when using a subclassed parser.
+
* Applied a patch to ttree from Leon Brocard print full path for ignored
files.
View
58 README
@@ -3,7 +3,7 @@
Version 2.03
- 14 June 2001
+ 15 June 2001
Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved
Copyright (C) 1998-2001 Canon Research Centre Europe Ltd.
@@ -95,7 +95,22 @@ appropriate sex, then you can always return it for a full refund. :-)
WHAT'S NEW?
-----------
-Version 2.02 follows shortly on the heels of version 2.01, fixing up
+Version 2.03 includes Craig Barratt's 'latex' filter and GD plugins.
+The latex filter allow you to create PostScript/PDF/DVI output from
+LaTeX source templates. The GD plugins allow you to access the GD::*
+modules to create dynamic images using template.
+
+There have been some improvements to VIEWs and they now work
+harmoniously with the XML::XPath and XML::DOM plugins for doing
+template based transformations of XML to other formats. The HTML
+plugin is new (but currently very basic) and some of the Splash! and
+HTML library templates have been updated and some new components added.
+
+There's a new tutorial from Dave Cross on using the Template Toolkit for
+creating and reusing data files. There's various other updates to the
+documentation, numerous minor bug fixes and other general improvements.
+
+Version 2.02 followed shortly on the heels of version 2.01, fixing up
some of the minor installation bugs and other problems that came to
light. Here's a quick summary of what's new since version 2.00.
See the Changes file for more details.
@@ -341,6 +356,30 @@ the relevant database. Please ensure that your database server is
running and that the database you specify exists before executing
'make test' (otherwise, expect a failure for the t/dbi.t test).
+The latex filter, new to release 2.03, allows you to generate
+PostScript, PDF and DVI files directly from LaTeX source templates.
+It relies on 3 external programs which the Makefile.PL script
+will attempt to locate. You will then be prompted to enable or
+disable the latex filter:
+
+ TT2 supports PDF, DVI and PostScript output using the latex
+ filter, implemented with the programs pdflatex, latex and dvips.
+
+ Because the latex filter runs latex and pdflatex, template authors
+ could use this feature to include any arbitrary file in their
+ latex input, or also open an arbitrary output file, independent of
+ the ABSOLUTE or RELATIVE configuration settings. This might create
+ a security concern at your site. If you don't trust your template
+ authors then don't enable the latex filter.
+
+ I found the following locations for pdflatex, latex and dvips:
+ + pdflatex => /usr/bin/pdflatex
+ + latex => /usr/bin/latex
+ + dvips => /usr/bin/dvips
+
+ Do you want to enable the latex filter? [y]
+ Are the pdflatex, latex and dvips paths ok? [y]
+
In additional to the Perl modules and POD documentation installed in
the usual way, the Template Toolkit distribution also contains a
number of optional components.
@@ -708,10 +747,13 @@ Individual sections can be viewed as, for example,
perldoc Template::Manual::Directives
perldoc Template::Manual::Plugins
-The Template::Tutorial page gives a general overview and "Quick Start"
-guide to using the Template Toolkit.
+The Template::Tutorial provides an index to the tutorial documents.
+There are currently 2 tutorials, on generating web content, and on
+creating and using data files.
perldoc Template::Tutorial
+ perldoc Template::Tutorial::Web
+ perldoc Template::Tutorial::Datafile
The new template libraries distributed with the Template Toolkit have
some documentation, but be warned that it is rather spartan at
@@ -745,8 +787,8 @@ Toolkit.
perldoc Template::FAQ
-The bad news is that it doesn't (yet) contain very many questions or answers.
-Patches welcome. :-)
+It's now got a few question in it, and better still, some answers!
+Further contributions welcome.
Most of the documentation is stable and reliable. Where it's not then
it's usually marked as such. In particular, the documentation for the
@@ -792,8 +834,8 @@ Toolkit, please contact the author.
VERSION COMPATABILITY
---------------------
-In language and feature terms, versions 2.02 and 2.01 should be fully
-backwardly compatible with version 2.00. Internally, the only
+In language and feature terms, versions 2.03, 2.02 and 2.01 should be
+fully backwardly compatible with version 2.00. Internally, the only
significant difference is that the Template::Plugin base class no
longer implements an AUTOLOAD method. If you've written a plugin
derived from the base class that relies on it (probably a bad idea
View
6 TODO
@@ -14,12 +14,6 @@
# $Id$
#========================================================================
-#------------------------------------------------------------------------
-# Pending 2.03
-#------------------------------------------------------------------------
-
-* Added splash hair + images
-
#------------------------------------------------------------------------
# Miscellaneous
#------------------------------------------------------------------------
View
@@ -112,8 +112,8 @@ L<http://www.andywardley.com/|http://www.andywardley.com/>
=head1 VERSION
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
=head1 COPYRIGHT
View
@@ -627,8 +627,8 @@ L<http://www.andywardley.com/|http://www.andywardley.com/>
=head1 VERSION
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
=head1 COPYRIGHT
View
@@ -99,7 +99,7 @@
Template::Provider::HTTP and use a PREFIX_MAP option to bind the
'http' template prefix to that particular provider (you may want to
go digging around in the <file>Changes</file> file around version 2.01 for
-more info on PREFIX_MAP - it may not be properly documented anywher
+more info on PREFIX_MAP - it may not be properly documented anywhere
else...yet!). e.g. (untested due to lack of existing HTTP Provider
- patches welcome!).
</p>
@@ -207,8 +207,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -307,8 +307,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -39,8 +39,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -980,8 +980,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.09, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.10, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -1521,7 +1521,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -90,6 +90,7 @@
Lyle Brooks &lt;brooks@deseret.com&gt;
Piers Cawley &lt;pdcawley@bofh.org.uk&gt;
Eric Cholet &lt;cholet@logilune.com&gt;
+ Dave Cross &lt;dave@dave.org.uk&gt;
Chris Dean &lt;ctdean@babycenter.com&gt;
Francois Desarmenien &lt;desar@club-internet.fr&gt;
Horst Dumcke &lt;hdumcke@cisco.com&gt;
@@ -131,7 +132,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -1941,7 +1941,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -417,7 +417,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -363,7 +363,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -253,7 +253,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -441,7 +441,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -123,7 +123,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -269,7 +269,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -962,7 +962,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -602,7 +602,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -811,7 +811,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.03, released on 14 June 2001.
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -98,8 +98,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.12, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.13, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -137,8 +137,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.10, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.11, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -89,8 +89,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.11, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.12, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -612,8 +612,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.17, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.18, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -190,8 +190,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.12, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.13, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -79,8 +79,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.08, distributed as part of the
-Template Toolkit version 2.03, released on 14 June 2001.
+2.09, distributed as part of the
+Template Toolkit version 2.03, released on 15 June 2001.
</p>
[%- END %]
[% WRAPPER section
Oops, something went wrong.

0 comments on commit 31cb481

Please sign in to comment.