Permalink
Browse files

developer release 2.05b

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@182 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent 8c71d23 commit 92ccaa1c416b660e365143a946a35a688200635a @abw committed Aug 21, 2001
Showing with 949 additions and 442 deletions.
  1. +43 −1 Changes
  2. +1 −0 MANIFEST
  3. +11 −16 README
  4. +10 −52 TODO
  5. +2 −2 bin/tpage
  6. +2 −2 bin/ttree
  7. +2 −2 docs/src/FAQ/FAQ.html
  8. +2 −2 docs/src/Library/HTML.html
  9. +2 −2 docs/src/Library/PostScript.html
  10. +2 −2 docs/src/Library/Splash.html
  11. +1 −1 docs/src/Manual/Config.html
  12. +1 −1 docs/src/Manual/Credits.html
  13. +1 −1 docs/src/Manual/Directives.html
  14. +22 −2 docs/src/Manual/Filters.html
  15. +171 −2 docs/src/Manual/Internals.html
  16. +1 −1 docs/src/Manual/Intro.html
  17. +1 −1 docs/src/Manual/Plugins.html
  18. +1 −1 docs/src/Manual/Refs.html
  19. +1 −1 docs/src/Manual/Syntax.html
  20. +1 −1 docs/src/Manual/Variables.html
  21. +1 −1 docs/src/Manual/Views.html
  22. +1 −1 docs/src/Modules/Template.html
  23. +2 −2 docs/src/Modules/Template/Base.html
  24. +2 −2 docs/src/Modules/Template/Config.html
  25. +2 −2 docs/src/Modules/Template/Constants.html
  26. +2 −2 docs/src/Modules/Template/Context.html
  27. +2 −2 docs/src/Modules/Template/Document.html
  28. +2 −2 docs/src/Modules/Template/Exception.html
  29. +23 −3 docs/src/Modules/Template/Filters.html
  30. +2 −2 docs/src/Modules/Template/Iterator.html
  31. +2 −2 docs/src/Modules/Template/Parser.html
  32. +2 −2 docs/src/Modules/Template/Plugin.html
  33. +2 −2 docs/src/Modules/Template/Plugin/Autoformat.html
  34. +2 −2 docs/src/Modules/Template/Plugin/CGI.html
  35. +1 −1 docs/src/Modules/Template/Plugin/DBI.html
  36. +2 −2 docs/src/Modules/Template/Plugin/Datafile.html
  37. +2 −2 docs/src/Modules/Template/Plugin/Date.html
  38. +2 −2 docs/src/Modules/Template/Plugin/Directory.html
  39. +2 −2 docs/src/Modules/Template/Plugin/Dumper.html
  40. +2 −2 docs/src/Modules/Template/Plugin/File.html
  41. +2 −2 docs/src/Modules/Template/Plugin/Format.html
  42. +2 −2 docs/src/Modules/Template/Plugin/Iterator.html
  43. +2 −2 docs/src/Modules/Template/Plugin/Pod.html
  44. +2 −2 docs/src/Modules/Template/Plugin/Table.html
  45. +2 −2 docs/src/Modules/Template/Plugin/URL.html
  46. +2 −2 docs/src/Modules/Template/Plugin/View.html
  47. +2 −2 docs/src/Modules/Template/Plugin/Wrap.html
  48. +1 −1 docs/src/Modules/Template/Plugin/XML/DOM.html
  49. +2 −2 docs/src/Modules/Template/Plugin/XML/RSS.html
  50. +2 −1 docs/src/Modules/Template/Plugin/XML/Simple.html
  51. +2 −2 docs/src/Modules/Template/Plugin/XML/XPath.html
  52. +2 −2 docs/src/Modules/Template/Plugins.html
  53. +2 −2 docs/src/Modules/Template/Provider.html
  54. +2 −2 docs/src/Modules/Template/Service.html
  55. +2 −2 docs/src/Modules/Template/Stash.html
  56. +2 −2 docs/src/Modules/Template/Test.html
  57. +43 −1 docs/src/Release/Changes.html
  58. +12 −17 docs/src/Release/README.html
  59. +10 −52 docs/src/Release/TODO.html
  60. +2 −2 docs/src/Tools/tpage.html
  61. +2 −2 docs/src/Tools/ttree.html
  62. +1 −1 docs/src/Tutorial/Datafile.html
  63. +1 −1 docs/src/Tutorial/Web.html
  64. +1 −1 docs/src/Tutorial/index.html
  65. +1 −1 docs/src/index.html
  66. +164 −1 docsrc/src/Manual/Internals.tt2
  67. +1 −6 docsrc/src/Release/README.tt2
  68. +9 −51 docsrc/src/Release/TODO.tt2
  69. +1 −1 lib/Template.pm
  70. +2 −2 lib/Template/Base.pm
  71. +2 −2 lib/Template/Config.pm
  72. +2 −2 lib/Template/Constants.pm
  73. +3 −3 lib/Template/Context.pm
  74. +2 −2 lib/Template/Document.pm
  75. +2 −2 lib/Template/Exception.pm
  76. +3 −3 lib/Template/FAQ.pod
  77. +2 −2 lib/Template/Iterator.pm
  78. +3 −3 lib/Template/Library/HTML.pod
  79. +3 −3 lib/Template/Library/PostScript.pod
  80. +3 −3 lib/Template/Library/Splash.pod
  81. +1 −1 lib/Template/Manual.pod
  82. +1 −1 lib/Template/Manual/Config.pod
  83. +1 −1 lib/Template/Manual/Credits.pod
  84. +1 −1 lib/Template/Manual/Directives.pod
  85. +20 −1 lib/Template/Manual/Filters.pod
  86. +163 −2 lib/Template/Manual/Internals.pod
  87. +1 −1 lib/Template/Manual/Intro.pod
  88. +1 −1 lib/Template/Manual/Plugins.pod
  89. +1 −1 lib/Template/Manual/Refs.pod
  90. +1 −1 lib/Template/Manual/Syntax.pod
  91. +1 −1 lib/Template/Manual/Variables.pod
  92. +1 −1 lib/Template/Manual/Views.pod
  93. +1 −1 lib/Template/Modules.pod
  94. +2 −2 lib/Template/Parser.pm
  95. +2 −2 lib/Template/Plugin.pm
  96. +2 −2 lib/Template/Plugin/Autoformat.pm
  97. +2 −2 lib/Template/Plugin/CGI.pm
  98. +1 −1 lib/Template/Plugin/DBI.pm
  99. +2 −2 lib/Template/Plugin/Datafile.pm
  100. +2 −2 lib/Template/Plugin/Date.pm
  101. +2 −2 lib/Template/Plugin/Directory.pm
  102. +2 −2 lib/Template/Plugin/Dumper.pm
  103. +2 −2 lib/Template/Plugin/File.pm
  104. +2 −2 lib/Template/Plugin/Format.pm
  105. +2 −2 lib/Template/Plugin/GD/Constants.pm
  106. +2 −2 lib/Template/Plugin/GD/Graph/area.pm
  107. +2 −2 lib/Template/Plugin/GD/Graph/bars.pm
  108. +2 −2 lib/Template/Plugin/GD/Graph/bars3d.pm
  109. +2 −2 lib/Template/Plugin/GD/Graph/lines.pm
  110. +2 −2 lib/Template/Plugin/GD/Graph/lines3d.pm
  111. +2 −2 lib/Template/Plugin/GD/Graph/linespoints.pm
  112. +2 −2 lib/Template/Plugin/GD/Graph/mixed.pm
  113. +2 −2 lib/Template/Plugin/GD/Graph/pie.pm
  114. +2 −2 lib/Template/Plugin/GD/Graph/pie3d.pm
  115. +2 −2 lib/Template/Plugin/GD/Graph/points.pm
  116. +2 −2 lib/Template/Plugin/GD/Image.pm
  117. +2 −2 lib/Template/Plugin/GD/Polygon.pm
  118. +2 −2 lib/Template/Plugin/GD/Text.pm
  119. +2 −2 lib/Template/Plugin/GD/Text/Align.pm
  120. +2 −2 lib/Template/Plugin/GD/Text/Wrap.pm
  121. +2 −2 lib/Template/Plugin/HTML.pm
  122. +2 −2 lib/Template/Plugin/Iterator.pm
  123. +2 −2 lib/Template/Plugin/Pod.pm
  124. +2 −2 lib/Template/Plugin/Table.pm
  125. +2 −2 lib/Template/Plugin/URL.pm
  126. +2 −2 lib/Template/Plugin/View.pm
  127. +2 −2 lib/Template/Plugin/Wrap.pm
  128. +1 −1 lib/Template/Plugin/XML/DOM.pm
  129. +2 −2 lib/Template/Plugin/XML/RSS.pm
  130. +2 −1 lib/Template/Plugin/XML/Simple.pm
  131. +2 −2 lib/Template/Plugin/XML/XPath.pm
  132. +2 −2 lib/Template/Plugins.pm
  133. +2 −2 lib/Template/Provider.pm
  134. +2 −2 lib/Template/Service.pm
  135. +2 −2 lib/Template/Stash.pm
  136. +2 −2 lib/Template/Stash/Context.pm
  137. +1 −1 lib/Template/Stash/XS.pm
  138. +2 −2 lib/Template/Test.pm
  139. +2 −2 lib/Template/Tools/tpage.pod
  140. +2 −2 lib/Template/Tools/ttree.pod
  141. +6 −6 lib/Template/Tutorial.pod
  142. +1 −1 lib/Template/Tutorial/Datafile.pod
  143. +6 −6 lib/Template/Tutorial/Web.pod
  144. +9 −0 t/tiedhash.t
View
@@ -3,7 +3,7 @@
# Changes
#
# DESCRIPTION
-# Revision history for the Template Toolkit version 2.05, detailing
+# Revision history for the Template Toolkit version 2.05b, detailing
# significant changes between versions, most recent first. Some
# way down the file you'll find a section detailing major changes from
# version 1.* to 2.* and a list of "Gotchas!" that you might have to
@@ -17,6 +17,48 @@
#========================================================================
#------------------------------------------------------------------------
+# Version 2.05b - 21 Sep 2001 ## DEVELOPER RELEASE ##
+#------------------------------------------------------------------------
+
+* Applied a patch from Chris Nandor to bring the XS stash in line with
+ the regular Perl stash wrt accepting defined but empty keys. See
+ http://www.tt2.org/pipermail/templates/2001-September/?????.html
+
+* Applied a patch from Craig Barratt to fix a bug
+ Template::Provider which manifests itself by barfing when caching is
+ turned off.
+
+* Updated Template::Manual::Internals to include information about
+ how to prepare patches and other useful information for potential
+ TT hackers.
+
+* Added the 'uri' filter for URI escaping text.
+
+
+#------------------------------------------------------------------------
+# Version 2.05a - 12 Sep 2001 ## DEVELOPER RELEASE ##
+#------------------------------------------------------------------------
+
+* Applied a patch from Chris Nandor to use 'MSWin32' as a specific O/S
+ detection rather than /win/i which gives a false positive for 'Darwin'.
+ Needless to say, that's something of an insult to Darwin :-). Also
+ fixes Template::Provider to use File::Spec::file_name_is_absolute() to
+ test for absolute paths instead of the previous kludge.
+
+* Added some code to the XS Stash to handle trivial access to tied
+ hashes. Regular set/get/default should work as expected, but at
+ present intermediate hashes are not auto-vivified on assignment,
+ e.g. [% these.dont.get.created.in.XS.but.do.in.the.perl.stash = 10 %]
+
+* Applied a patch from Craig to fix a bug in Template::Provider which
+ manifests itself by barfing when caching is turned off.
+
+* Updated Template::Manual::Internals to include information about
+ how to prepare patches and other useful information for potential
+ TT hackers.
+
+
+#------------------------------------------------------------------------
# Version 2.05 - 11 Sep 2001
#------------------------------------------------------------------------
View
@@ -554,6 +554,7 @@ t/test/xml/example.rdf
t/test/xml/testfile.xml
t/text.t
t/throw.t
+t/tiedhash.t
t/try.t
t/url.t
t/vars.t
View
@@ -1,9 +1,9 @@
Template Toolkit
- Version 2.05
+ Version 2.05b
- 11 September 2001
+ 21 September 2001
Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved
Copyright (C) 1998-2001 Canon Research Centre Europe Ltd.
@@ -42,8 +42,8 @@ need to install them. They're all available from CPAN if you do.
To install the Template Toolkit:
- tar zxf Template-Toolkit-2.05.tar.gz
- cd Template-Toolkit-2.05
+ tar zxf Template-Toolkit-2.05b.tar.gz
+ cd Template-Toolkit-2.05b
perl Makefile.PL
make
make test
@@ -239,19 +239,19 @@ The Template Toolkit is distributed as a gzipped tar archive file:
Template-Toolkit-<version>.tar.gz
-where <version> represents the current version number, e.g. 2.05.
+where <version> represents the current version number, e.g. 2.05b.
To install the Template Toolkit, unpack the distribution archive to
create an installation directory. Something like this:
- tar zxf Template-Toolkit-2.05.tar.gz
+ tar zxf Template-Toolkit-2.05b.tar.gz
or
- gunzip Template-Toolkit-2.05.tar.gz
- tar xf Template-Toolkit-2.05.tar
+ gunzip Template-Toolkit-2.05b.tar.gz
+ tar xf Template-Toolkit-2.05b.tar
You can then 'cd' into the directory created,
- cd Template-Toolkit-2.05
+ cd Template-Toolkit-2.05b
and perform the usual Perl installation procedure:
@@ -302,18 +302,13 @@ 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 Template Toolkit now boast a high-speed implementation of
+The Template Toolkit now boasts a high-speed implementation of
Template::Stash written in XS. You can choose to build this as
an optional module for using explicitly as an alternative to
the regular pure-perl stash module. In additional, you can opt
to use the XS Stash as the default, typically making the Template
Toolkit run twice as fast!
-However, please note that there may be outstanding issues relating to
-accessing data from tied hashes (e.g. Apache::Session). For further
-information, see the related thread on the Template Toolkit mailing list:
-http://www.tt2.org/pipermail/templates/2001-September/001568.html
-
When prompted, answer 'y' or 'n' to build and optionally use
the XS Stash module by default:
@@ -799,7 +794,7 @@ VERSION COMPATABILITY
---------------------
In terms of the template language and features available, versions
-2.01 through to 2.05 should be fully backwardly compatible with
+2.01 through to 2.05b should be fully backwardly compatible with
version 2.00.
Version 2.00 is backwardly compatible with version 1 in all but a few
View
@@ -3,7 +3,7 @@
# TODO
#
# DESCRIPTION
-# TODO list for the Template Toolkit version 2.05, containing
+# TODO list for the Template Toolkit version 2.05b, containing
# known bugs, limitations, planned enhancements, long term visions
# and a few whacky ideas.
#
@@ -18,11 +18,10 @@
# Miscellaneous
#------------------------------------------------------------------------
-* Apply pudge's patch to use File::Spec consistently across TT.
-
* Errors thrown via the Error module are not correctly caught. I looked
at this briefly but the problem wasn't immediately obvious and needs some
- more considered investigation.
+ more considered investigation. There are also problems with CGI::Carp
+ throwing errors that don't get properly caught.
* The 'eval' filter leaks memory, as reported by Colin Johnson. The
filter subroutine created contains a reference to the context and then
@@ -51,28 +50,6 @@
allow recursion testing for BLOCKs as well as Template::Document
objects.
-* A ':preload' use option to Template.pm to preload all modules? Or
- should it be ':noload' and have them preloaded by default?
-
-* It should be possible to access template BLOCK definitions via the
- 'template' variable. This would be particularly useful in conjunction
- with the PRE_PROCESS, PROCESS and/or POST_PROCESS options, e.g.
-
- <table>
- <tr>
- <td>[% INCLUDE $template.blocks.sidebar %]</td>
- <td>[% INCLUDE $template %]
- </tr>
- </table>
-
- Currently you *can* access these blocks, but the stash automatically
- calls these unblessed subs, generating an error due to the fact that
- no context reference is passed to the sub to allow it to act as a
- template.
-
-* The issue of CGI::Carp throwing non-reference error might need closer
- investigation.
-
* It would be nice if there was an option so that the files generated
under the COMPILE_DIR are relative to the INCLUDE_PATH and not absolute.
This could cause potential conflicts (e.g. if INCLUDE_PATH changes
@@ -82,10 +59,10 @@
* Richard Tietjen's patch for stash replace. Allows back references
(e.g. $1) but it would be nice to find a rock-solid way to implement
- it without relying on unusual ^A delimiter character.
+ it without relying on unusual ^A delimiter character.
* Further to the above, Craig Barratt has this solution which will be
- going into the next verion (2.05) unless anyone has any further
+ going into the next verion (2.05b) unless anyone has any further
suggestions to make before then.
It would be great if replace handled backreferences. I don't like
@@ -128,9 +105,6 @@
* Document the Splash! library properly, once the interface is a little
more settled.
-* Various bits of the documentation like Changes, TODO, FAQ, etc., should
- be built from XML files.
-
* Examples for libraries (HTML, Splash & PostScript) should be integrated
into the documentation.
@@ -174,16 +148,17 @@
installed in an architecture-dependant directory. For info, see
http://www.tt2.org/pipermail/templates/2001-September/001568.html
+* Jonas Liljegren reports a segfault when using the XS Stash under
+ Apache/mod_perl with certain undefined variables. At the time of
+ writing detail is scarce. Check the mailing list for further
+ details.
+
* Stas Bekman raised the issue of the Stash not being able to correctly
differentiate between scalar/list context and in particular, the
cgi.param examples not working as expected. This is fixed in v3 and
in Craig's Stash/Context.pm which does the right lookahead to allow
'scalar' and 'list' postfix operators. e.g. cgi.param.list
-* Richard Tietjen's patch for stash replace. Allows back references
- (e.g. $1) but it would be nice to find a rock-solid way to implement
- it without relying on unusual ^A delimiter character.
-
* Have stash, etc., add current template name/line when reporting errors.
(may be tricky under the current implementation)
@@ -196,10 +171,6 @@
you can't do this: [% foo(bar + 1) %]. This has been fixed in the v3
parser. See http://www.tt2.org/v3/
-* Stas reported a problem with spacing, something like : [% a =b+10 %] but
- I can't seem to reproduce it (or remember exactly what the problem
- was... I need to check the archives for his email).
-
* The parser isn't as intelligent as it could be about blocks of template
code commented out en masse. The pre-scanner find the first terminating
END_TAG after an opening tag, regardless of it being on a
@@ -269,19 +240,6 @@
version 2, otherwise you might have to wait for the first alpha
release of verion 3.
-* Note that this might also allow a default view to be set for a BLOCK:
-
- [% BLOCK document view=my.view.pod %]
- ...
- [% END %]
-
- Being able to set a default VIEW is another issue altogether. In
- many ways it's orthogonal to the definition of VIEWs which is
- discussed below. It should be fairly straightforward as there
- aren't that many issues to consider (syntax perhaps being the only
- major one) but I haven't really considered them yet so watch this
- space for details.
-
* Craig Barratt reports the following:
I looked at Parse.yp to see how hard it would be to push FILTER
View
@@ -112,8 +112,8 @@ L<http://www.andywardley.com/|http://www.andywardley.com/>
=head1 VERSION
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
=head1 COPYRIGHT
View
@@ -627,8 +627,8 @@ L<http://www.andywardley.com/|http://www.andywardley.com/>
=head1 VERSION
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
=head1 COPYRIGHT
@@ -221,8 +221,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -307,8 +307,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -39,8 +39,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -980,8 +980,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.24, distributed as part of the
-Template Toolkit version 2.05, released on 11 September 2001.
+2.25, distributed as part of the
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -1521,7 +1521,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.05, released on 11 September 2001.
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -132,7 +132,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.05, released on 11 September 2001.
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
@@ -1945,7 +1945,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.05, released on 11 September 2001.
+Template Toolkit version 2.05b, released on 21 September 2001.
</p>
[%- END %]
[% WRAPPER section
Oops, something went wrong. Retry.

0 comments on commit 92ccaa1

Please sign in to comment.