Permalink
Browse files

Rebuild in preparation for 2.15b

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@1020 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent 67ef8b4 commit 06c33bce65d244669bc96e48d790381a96a41184 @abw committed May 30, 2006
Showing with 565 additions and 752 deletions.
  1. +55 −1 Changes
  2. +2 −2 HACKING
  3. +9 −9 INSTALL
  4. +1 −1 MANIFEST
  5. +4 −4 README
  6. +1 −1 TODO
  7. +4 −7 bin/fixconfig
  8. +2 −2 bin/tpage
  9. +2 −2 bin/ttree
  10. +2 −2 docs/src/FAQ/FAQ.html
  11. +2 −2 docs/src/Library/HTML.html
  12. +2 −2 docs/src/Library/PostScript.html
  13. +2 −2 docs/src/Library/Splash.html
  14. +1 −1 docs/src/Manual/Config.html
  15. +1 −1 docs/src/Manual/Credits.html
  16. +1 −1 docs/src/Manual/Directives.html
  17. +6 −6 docs/src/Manual/Filters.html
  18. +1 −1 docs/src/Manual/Internals.html
  19. +1 −1 docs/src/Manual/Intro.html
  20. +1 −1 docs/src/Manual/Plugins.html
  21. +1 −1 docs/src/Manual/Refs.html
  22. +1 −1 docs/src/Manual/Syntax.html
  23. +1 −1 docs/src/Manual/VMethods.html
  24. +1 −1 docs/src/Manual/Variables.html
  25. +1 −1 docs/src/Manual/Views.html
  26. +1 −1 docs/src/Modules/Template.html
  27. +2 −2 docs/src/Modules/Template/Base.html
  28. +2 −2 docs/src/Modules/Template/Config.html
  29. +2 −2 docs/src/Modules/Template/Constants.html
  30. +2 −2 docs/src/Modules/Template/Context.html
  31. +2 −2 docs/src/Modules/Template/Document.html
  32. +2 −2 docs/src/Modules/Template/Exception.html
  33. +7 −7 docs/src/Modules/Template/Filters.html
  34. +2 −2 docs/src/Modules/Template/Iterator.html
  35. +2 −2 docs/src/Modules/Template/Namespace/Constants.html
  36. +2 −2 docs/src/Modules/Template/Parser.html
  37. +2 −2 docs/src/Modules/Template/Plugin.html
  38. +1 −1 docs/src/Modules/Template/Plugin/Autoformat.html
  39. +2 −2 docs/src/Modules/Template/Plugin/CGI.html
  40. +2 −2 docs/src/Modules/Template/Plugin/Datafile.html
  41. +2 −2 docs/src/Modules/Template/Plugin/Date.html
  42. +2 −2 docs/src/Modules/Template/Plugin/Directory.html
  43. +2 −2 docs/src/Modules/Template/Plugin/Dumper.html
  44. +2 −2 docs/src/Modules/Template/Plugin/File.html
  45. +2 −2 docs/src/Modules/Template/Plugin/Filter.html
  46. +2 −2 docs/src/Modules/Template/Plugin/Format.html
  47. +2 −2 docs/src/Modules/Template/Plugin/HTML.html
  48. +2 −2 docs/src/Modules/Template/Plugin/Image.html
  49. +2 −2 docs/src/Modules/Template/Plugin/Iterator.html
  50. +2 −2 docs/src/Modules/Template/Plugin/Math.html
  51. +2 −2 docs/src/Modules/Template/Plugin/Pod.html
  52. +2 −2 docs/src/Modules/Template/Plugin/Procedural.html
  53. +2 −2 docs/src/Modules/Template/Plugin/String.html
  54. +2 −2 docs/src/Modules/Template/Plugin/Table.html
  55. +2 −2 docs/src/Modules/Template/Plugin/URL.html
  56. +2 −2 docs/src/Modules/Template/Plugin/View.html
  57. +2 −2 docs/src/Modules/Template/Plugin/Wrap.html
  58. +2 −2 docs/src/Modules/Template/Plugins.html
  59. +2 −2 docs/src/Modules/Template/Provider.html
  60. +2 −2 docs/src/Modules/Template/Service.html
  61. +2 −2 docs/src/Modules/Template/Stash.html
  62. +2 −2 docs/src/Modules/Template/Stash/Context.html
  63. +1 −1 docs/src/Modules/Template/Stash/XS.html
  64. +2 −2 docs/src/Modules/Template/Test.html
  65. +55 −1 docs/src/Release/Changes.html
  66. +2 −2 docs/src/Release/HACKING.html
  67. +9 −9 docs/src/Release/INSTALL.html
  68. +4 −4 docs/src/Release/README.html
  69. +1 −1 docs/src/Release/TODO.html
  70. +2 −2 docs/src/Tools/tpage.html
  71. +2 −2 docs/src/Tools/ttree.html
  72. +1 −1 docs/src/Tutorial/Datafile.html
  73. +1 −1 docs/src/Tutorial/Web.html
  74. +1 −1 docsrc/pod/Template.pod
  75. +27 −31 lib/Template.pm
  76. +2 −2 lib/Template/Base.pm
  77. +2 −2 lib/Template/Config.pm
  78. +2 −2 lib/Template/Constants.pm
  79. +2 −2 lib/Template/Context.pm
  80. +2 −2 lib/Template/Document.pm
  81. +2 −2 lib/Template/Exception.pm
  82. +3 −3 lib/Template/FAQ.pod
  83. +44 −47 lib/Template/Iterator.pm
  84. +3 −3 lib/Template/Library/HTML.pod
  85. +3 −3 lib/Template/Library/PostScript.pod
  86. +3 −3 lib/Template/Library/Splash.pod
  87. +1 −1 lib/Template/Manual.pod
  88. +1 −1 lib/Template/Manual/Config.pod
  89. +1 −1 lib/Template/Manual/Credits.pod
  90. +1 −1 lib/Template/Manual/Directives.pod
  91. +6 −7 lib/Template/Manual/Filters.pod
  92. +1 −1 lib/Template/Manual/Internals.pod
  93. +1 −1 lib/Template/Manual/Intro.pod
  94. +1 −1 lib/Template/Manual/Plugins.pod
  95. +1 −1 lib/Template/Manual/Refs.pod
  96. +1 −1 lib/Template/Manual/Syntax.pod
  97. +1 −1 lib/Template/Manual/VMethods.pod
  98. +1 −1 lib/Template/Manual/Variables.pod
  99. +1 −1 lib/Template/Manual/Views.pod
  100. +1 −1 lib/Template/Modules.pod
  101. +2 −2 lib/Template/Namespace/Constants.pm
  102. +2 −2 lib/Template/Parser.pm
  103. +2 −2 lib/Template/Plugin.pm
  104. +1 −1 lib/Template/Plugin/Autoformat.pm
  105. +2 −2 lib/Template/Plugin/CGI.pm
  106. +2 −2 lib/Template/Plugin/Datafile.pm
  107. +2 −2 lib/Template/Plugin/Date.pm
  108. +2 −2 lib/Template/Plugin/Directory.pm
  109. +2 −2 lib/Template/Plugin/Dumper.pm
  110. +2 −2 lib/Template/Plugin/File.pm
  111. +2 −2 lib/Template/Plugin/Filter.pm
  112. +2 −2 lib/Template/Plugin/Format.pm
  113. +2 −2 lib/Template/Plugin/HTML.pm
  114. +2 −2 lib/Template/Plugin/Image.pm
  115. +2 −2 lib/Template/Plugin/Iterator.pm
  116. +2 −2 lib/Template/Plugin/Math.pm
  117. +2 −2 lib/Template/Plugin/Pod.pm
  118. +2 −2 lib/Template/Plugin/Procedural.pm
  119. +2 −2 lib/Template/Plugin/String.pm
  120. +2 −2 lib/Template/Plugin/Table.pm
  121. +2 −2 lib/Template/Plugin/URL.pm
  122. +2 −2 lib/Template/Plugin/View.pm
  123. +2 −2 lib/Template/Plugin/Wrap.pm
  124. +4 −2 lib/Template/Plugins.pm
  125. +5 −6 lib/Template/Provider.pm
  126. +57 −57 lib/Template/Service.pm
  127. +27 −326 lib/Template/Stash.pm
  128. +2 −2 lib/Template/Stash/Context.pm
  129. +1 −1 lib/Template/Stash/XS.pm
  130. +2 −2 lib/Template/Test.pm
  131. +2 −2 lib/Template/Tools/tpage.pod
  132. +2 −2 lib/Template/Tools/ttree.pod
  133. +1 −1 lib/Template/Tutorial.pod
  134. +1 −1 lib/Template/Tutorial/Datafile.pod
  135. +1 −1 lib/Template/Tutorial/Web.pod
  136. +5 −3 t/fileline.t
  137. +16 −4 t/filter.t
  138. +10 −10 t/foreach.t
  139. +1 −0 t/test/src/complex
  140. +6 −6 t/vmethods/hash.t
  141. +0 −1 t/vmethods/text.t
View
56 Changes
@@ -3,7 +3,7 @@
# Changes
#
# DESCRIPTION
-# Revision history for the Template Toolkit version 2.15, detailing
+# Revision history for the Template Toolkit version 2.15b, 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
@@ -23,6 +23,60 @@
#========================================================================
#------------------------------------------------------------------------
+# Version 2.15b - ## DEVELOPER RELEASE ##
+#------------------------------------------------------------------------
+
+* Changed the uri filter to escape all reserved characters as per
+ URI::Escape and RFC2396. This now includes &, @, /, ;, :, =, +, ?
+ and $ which were previously not escaped. Thanks to islue@cpan.org
+ for reporting the problem.
+
+ http://rt.cpan.org/Ticket/Display.html?id=19593
+
+* Also changed the uri filter to encode all wide characters as the
+ equivalent UTF escapes. Thanks to Jonathan Rockway for reporting
+ the problem.
+
+ http://rt.cpan.org/Ticket/Display.html?id=19354
+
+* Moved all the virtual methods out of Template::Stash and into
+ a new Template::VMethods module.
+
+* Fixed the version number of Template::Stash which had rolled over
+ to 2.102 making it appear to predate the 2.86 stash in TT v2.14.
+ Thanks to Randal Schwartz for reporting the problem.
+
+* Changed the _recover() method of Template::Service to check if the
+ error thrown is a Template::Exception object rather than just a
+ reference. Thanks to David Wheeler for reporting the problem.
+
+ http://rt.cpan.org/Ticket/Display.html?id=17630
+
+* Fixed the some tests in stash.t and stash-xs.t which were failing
+ under Perl 5.6.2 due to a slightly different error message being
+ generated. Thanks to Anton Berezin for reporting the problem.
+
+* Fixed a bug in the Template::Provider _load() method to check that
+ $data is a hash ref before trying to mess with its innards. Thanks
+
+
+#------------------------------------------------------------------------
+# Version 2.15a - 29th May 2006 ## DEVELOPER RELEASE ##
+#------------------------------------------------------------------------
+
+* Removed the latex filter from Template::Filters and related config
+ variables from Template::Config
+
+* Changed the t/fileline.t test to remove the line number from what Perl
+ reports as "(eval $line)". It appears to get the $line wrong on
+ FreeBSD, although the correct line number is reported following that
+ so the tests still do the right thing. Thanks to Anton Berezin for
+ reporting the problem.
+
+* Changed the t/compile3.t test to do something similar.
+
+
+#------------------------------------------------------------------------
# Version 2.15 - 26th May 2006
#------------------------------------------------------------------------
View
@@ -1,9 +1,9 @@
Template Toolkit
- Version 2.15
+ Version 2.15b
- 26 May 2006
+ 30 May 2006
Copyright (C) 1996-2006 Andy Wardley. All Rights Reserved
Copyright (C) 1998-2002 Canon Research Centre Europe Ltd.
View
18 INSTALL
@@ -1,9 +1,9 @@
Template Toolkit
- Version 2.15
+ Version 2.15b
- 26 May 2006
+ 30 May 2006
Copyright (C) 1996-2006 Andy Wardley. All Rights Reserved
Copyright (C) 1998-2002 Canon Research Centre Europe Ltd.
@@ -25,8 +25,8 @@ Available from CPAN in:
To install the Template Toolkit:
- tar zxf Template-Toolkit-2.15.tar.gz
- cd Template-Toolkit-2.15
+ tar zxf Template-Toolkit-2.15b.tar.gz
+ cd Template-Toolkit-2.15b
perl Makefile.PL
make
make test
@@ -88,19 +88,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.15.
+where <version> represents the current version number, e.g. 2.15b.
To install the Template Toolkit, unpack the distribution archive to
create an installation directory. Something like this:
- tar zxf Template-Toolkit-2.15.tar.gz
+ tar zxf Template-Toolkit-2.15b.tar.gz
or
- gunzip Template-Toolkit-2.15.tar.gz
- tar xf Template-Toolkit-2.15.tar
+ gunzip Template-Toolkit-2.15b.tar.gz
+ tar xf Template-Toolkit-2.15b.tar
You can then 'cd' into the directory created,
- cd Template-Toolkit-2.15
+ cd Template-Toolkit-2.15b
and perform the usual Perl installation procedure:
View
@@ -71,7 +71,6 @@ docs/src/Modules/Template/Plugin/Table.html
docs/src/Modules/Template/Plugin/URL.html
docs/src/Modules/Template/Plugin/View.html
docs/src/Modules/Template/Plugin/Wrap.html
-docs/src/Modules/Template/Plugin/XML/Style.html
docs/src/Modules/Template/Plugins.html
docs/src/Modules/Template/Provider.html
docs/src/Modules/Template/Service.html
@@ -407,6 +406,7 @@ lib/Template/Tutorial.pod
lib/Template/Tutorial/Datafile.pod
lib/Template/Tutorial/Web.pod
lib/Template/View.pm
+lib/Template/VMethods.pm
Makefile.PL
MANIFEST
META.yml Module meta-data (added by MakeMaker)
View
8 README
@@ -1,9 +1,9 @@
Template Toolkit
- Version 2.15
+ Version 2.15b
- 26 May 2006
+ 30 May 2006
Copyright (C) 1996-2006 Andy Wardley. All Rights Reserved
Copyright (C) 1998-2002 Canon Research Centre Europe Ltd.
@@ -26,8 +26,8 @@ Available from CPAN in:
To install the Template Toolkit:
- tar zxf Template-Toolkit-2.15.tar.gz
- cd Template-Toolkit-2.15
+ tar zxf Template-Toolkit-2.15b.tar.gz
+ cd Template-Toolkit-2.15b
perl Makefile.PL
make
make test
View
2 TODO
@@ -3,7 +3,7 @@
# TODO
#
# DESCRIPTION
-# TODO list for the Template Toolkit version 2.15, containing
+# TODO list for the Template Toolkit version 2.15b, containing
# known bugs, limitations, planned enhancements, long term visions
# and a few whacky ideas.
#
View
@@ -3,8 +3,8 @@
# Fixes the lib/Template/Config.pm file to restore the correct
# (default) values for a distribution release. Because the
# Makefile.PL updates this file, it means that I could send out
-# a "standard" lib/Template/Config.pm with, for example, LaTeX
-# paths pre-defined and XS Stash enabled by default.
+# a "standard" lib/Template/Config.pm with XS Stash enabled by
+# default, for example.
#
use strict;
@@ -18,9 +18,6 @@ die $! unless -f $CONFIG;
my $fixes = {
'$STASH' => 'Template::Stash',
'$INSTDIR' => '',
- '$LATEX_PATH' => '',
- '$PDFLATEX_PATH' => '',
- '$DVIPS_PATH' => '',
};
my $args = { };
@@ -82,10 +79,10 @@ sub ttprompt {
local $|=1;
print "$msg $dispdef";
if (! $ISA_TTY) {
- print "$def\n";
+ print "$def\n";
}
else {
- chomp($ans = <STDIN>);
+ chomp($ans = <STDIN>);
}
return ($ans ne '') ? $ans : $def;
}
View
@@ -228,8 +228,8 @@ L<http://wardley.org/|http://wardley.org/>
=head1 VERSION
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
=head1 COPYRIGHT
View
@@ -1055,8 +1055,8 @@ Brocard who gets everywhere, it seems.
=head1 VERSION
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
=head1 COPYRIGHT
View
@@ -402,8 +402,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -292,8 +292,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -47,8 +47,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -892,8 +892,8 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-2.66, distributed as part of the
-Template Toolkit version 2.15, released on 26 May 2006.
+2.67, distributed as part of the
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -2008,7 +2008,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -126,7 +126,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -2045,7 +2045,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -255,12 +255,12 @@
</p>
<pre> my%20file.html</pre>
<p>
-Note that URI escaping isn't always enough when generating hyperlinks in
-an HTML document. The <code>'&amp;'</code> character, for example, is valid in a URI and
-will not be escaped by the URI filter. In this case you should also filter
-the text through the 'html' filter.
+Note that as of TT version 2.16, the uri filter now correctly encodes
+all reserved characters. This includes <code>'&amp;'</code>, <code>'@'</code>, <code>'/'</code>, <code>';'</code>, <code>':'</code>,
+<code>'='</code>, <code>'+'</code>, <code>'?'</code> and <code>'$'</code> which were not escaped (incorrectly) by the
+uri filter in versions 2.15 and earlier. See RFC 2396 for further
+details.
</p>
-<pre> &lt;a href=&quot;[% tt_start_tag %] filename | uri | html [% tt_end_tag %]&quot;&gt;click here&lt;/a&gt;</pre>
[%- END %]
[% WRAPPER subsection
title = "indent(pad)"
@@ -510,7 +510,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -544,7 +544,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -267,7 +267,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -374,7 +374,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -143,7 +143,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -285,7 +285,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -670,7 +670,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
@@ -887,7 +887,7 @@
[% WRAPPER section
title="VERSION"
-%]<p>
-Template Toolkit version 2.15, released on 26 May 2006.
+Template Toolkit version 2.15b, released on 30 May 2006.
</p>
[%- END %]
[% WRAPPER section
Oops, something went wrong.

0 comments on commit 06c33bc

Please sign in to comment.