[Templates-cvs] cvs commit: Template2/docsrc/src/Release Changes.tt2
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/01/30 17:15:38
Modified: docsrc/src/Release Changes.tt2
Log:
* a whole bunch more changes....
Revision Changes Path
1.124 +132 -25 Template2/docsrc/src/Release/Changes.tt2
Index: Changes.tt2
===================================================================
RCS file: /template-toolkit/Template2/docsrc/src/Release/Changes.tt2,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- Changes.tt2 2006/01/29 11:40:10 1.123
+++ Changes.tt2 2006/01/30 17:15:38 1.124
@@ -20,13 +20,16 @@
# Any changes you make here may be lost!
#
#------------------------------------------------------------------------
-# $Id: Changes.tt2,v 1.123 2006/01/29 11:40:10 abw Exp $
+# $Id: Changes.tt2,v 1.124 2006/01/30 17:15:38 abw Exp $
#========================================================================
#------------------------------------------------------------------------
# Version 2.15
#------------------------------------------------------------------------
+Stash
+-----
+
* Activated a patch in Template::Stash from Stephen Howard which adds
code for the full set of fallbacks for dot ops called against objects
which don't implement the specific method. For example
@@ -39,12 +42,46 @@
* Added full support for tied hashes and tied lists in the XS Stash.
Added some further tests to make sure it's all working as expected.
+ http://tt2.org/pipermail/templates/2006-January/008266.html
+
+* Changed Template::Stash and Template::Stash::XS to evaluate list
+ vmethods in lvalues.
+
+ http://tt2.org/pipermail/templates/2006-January/008198.html
+
+* Changed Template::Stash to be a little more strict about what it
+ considers a failed method call. This allows exception thrown
+ within called methods to be propagated correctly rather than
+ being ignored as undefined method. Thanks to Dave Howorth for
+ reporting the problem and providing a fix. Also ported to the
+ Template::Stash::XS module.
+
+ http://tt2.org/pipermail/templates/2005-April/007375.html
+
+* Applied path from Slaven Rezic to Template::Stash::XS to check return
+ code in tt_fetch_item() in a way which plays nicely with tied hashes.
+
+ http://rt.cpan.org/Ticket/Display.html?id=7830
+
+* Removed redundant performance profiling code from Template::Stash::XS.
+
+
+Virtual Methods
+---------------
+
* Changed list.hash and hash.list vmethods to Do The Right Thing instead
of some crack fuelled nonsense. hash.list now returns [ %$hash ]
and list.hash now returns [ @$list ]
http://template-toolkit.org/pipermail/templates/2006-January/008256.html
+* Fixed the split scalar virtual method which wasn't accepting the second
+ argument (limit) correctly. Thanks again to Josh Rosenbaum for pointing
+ out the problem, although the solution turned out to be a little more
+ complicated.
+
+ http://tt2.org/pipermail/templates/2005-October/007982.html
+
* Added the 'delete' hash virtual method and the 'remove' scalar virtual
method.
@@ -58,33 +95,41 @@
http://tt2.org/pipermail/templates/2005-January/007141.html
-* Fixed the split scalar virtual method which wasn't accepting the second
- argument (limit) correctly. Thanks again to Josh Rosenbaum for pointing
- out the problem, although the solution turned out to be a litte more
- complicated.
+* Changed the sort and nsort list virtual methods to always return
+ references to lists, avoiding any ambiguity in return results.
- http://tt2.org/pipermail/templates/2005-October/007982.html
+Plugins
+-------
+
+* Added the $Template::Plugins::PLUGIN_BASE package variable to define
+ the default 'Template::Plugin' value for the PLUGIN_BASE option.
+ By clearing this value before calling the Template new() constructor,
+ you can avoid having Template::Plugin added to the PLUGIN_BASE by
+ default. Also changed PLUGINS search to look for lower case plugin
+ name as well as case-specific name. Thanks yet again Josh for
+ addressing this issue.
+
+ http://tt2.org/pipermail/templates/2006-January/008225.html
+
* Applied a single character patch from Lubomir Host which fixes the
user attribute in Template::Plugin::File.
-* Added an eval wrapper around mkpath() in Template::Provider to handle
- errors more nicely.
-
* Added the Math Plugin to MANIFEST.
* Changed the URL plugin to ignore parameters that are unset (e.g.
defined but zero length)
-* Applied a patch to the Image plugin from Bill Moseley to escape
- attributes in the tag() method of the Image plugin.
+* Applied two patches to the Image plugin from Bill Moseley to escape
+ attributes in the tag() method and to provide the 'file' options.
+ Also adds proper documentation for the 'root' option.
-* Changed Template::Stash and Template::Stash::XS to evaluate list
- vmethods in lvalues.
+ http://tt2.org/pipermail/templates/2005-November/008086.html
+ http://tt2.org/pipermail/templates/2005-December/008189.html
- http://tt2.org/pipermail/templates/2006-January/008198.html
+* Added substr() method to the String plugin, as suggested here:
-* Removed redundant performance profiling code from Template::Stash::XS.
+ http://rt.cpan.org/Ticket/Display.html?id=2619
* Moved all XML plugins and related tests into a separate Template-XML
distribution.
@@ -93,9 +138,71 @@
* Moved GD plugins and tests into Template-GD distribution.
+
+Filters
+-------
+
+* Applied a patch to the truncate() filter from "Ashley" which
+ adds a second argument.
+
+ http://tt2.org/pipermail/templates/2005-December/008145.html
+
+* Fixed a bug in the same truncate() filter to stop it from truncating
+ strings that are exactly as long as the limit (change '<' to '<='),
+ thanks to Nicholas at oxhoej.dk.
+
+ http://rt.cpan.org/Ticket/Display.html?id=8911
+
+* Updated documentation to reflect the fact that the html filter also
+ escapes " as " Thanks to Geoff Richards for reporting it.
+
* Moved Latex filters into Template-Latex distribution.
+ttree
+-----
+
+* Applied patch from Yuri Pimenov to prevent ttree from raising a
+ warning when the --depend_debug option is used.
+
+ http://tt2.org/pipermail/templates/2005-May/007400.html
+
+* Applied a patch to ttree from Slaven Rezic which fixes the arguments
+ passed to mkpath.
+
+ http://rt.cpan.org//Ticket/Display.html?id=14216
+
+* Applied a patch to ttree from Mike Schilli to prevent it from going
+ into an infinite loop on encountering a directory called "0"
+
+ https://rt.cpan.org/Ticket/Display.html?id=14905
+
+
+Miscellaneous
+-------------
+
+* Added code to Makefile.PL to detect $ENV{PERL_MM_USE_DEFAULT} to
+ accept all defaults. Thanks to KANE.
+
+ http://rt.cpan.org/Ticket/Display.html?id=14613
+
+* Removed vStrings from Template::Document. Thanks to Dave Cross for
+ reporting the problem.
+
+ http://tt2.org/pipermail/templates/2005-April/007357.html
+
+* Applied a patch from Barrie Slaymaker which corrects a bug in the
+ Template::Parser line counting when using chomp flags.
+
+ http://tt2.org/pipermail/templates/2005-December/008157.html
+
+* Added an eval wrapper around mkpath() in Template::Provider to handle
+ errors more nicely.
+
+* Numerous documentation fixes.
+
+
+
#------------------------------------------------------------------------
# Version 2.14 - 4th October 2004
#------------------------------------------------------------------------
@@ -1034,7 +1141,7 @@
* Applied a patch to the DBI plugin from Rafael Kitover which calls
the DBI connect_cached() method instead of connect() to allow
- connection caching in a persistant server environment (e.g. Apache
+ connection caching in a persistent server environment (e.g. Apache
mod_perl).
* Changed html filter to be a dynamic filter factory, allowing the
@@ -2003,7 +2110,7 @@
* Changed the (undocumented) FORNEXT directive to NEXT and documented it.
-* Fixed a bug in the persistant caching mechanism in Template::Provider
+* Fixed a bug in the persistent caching mechanism in Template::Provider
which was failing to write compiled template files for source templates
specifed in the form [% INCLUDE foo/bar %]. Intermediate directories
(like 'foo' in this example) weren't being created and the disk write
@@ -2189,12 +2296,12 @@
* Added an iterator() method to Template::Config to require
Template::Iterator and instantiate an iterator, and changed
generated code for FOREACH to call this factory method. This fixes
- a bug with pre-compiled (i.e persistant) templates which were
+ a bug with pre-compiled (i.e persistent) templates which were
failing if Template::Iterator wasn't already loaded. Thanks to Doug
Steinwand, Rafael Kitover and Jonas Lilegren who all identified the
problem and hounded me until I fixed it. :-)
-
-* Fixed a problem with persistant templates not being reloaded due to
+
+* Fixed a problem with persistent templates not being reloaded due to
the %INC hash. This caused 1 to be returned from require() instead
of the compiled template.
@@ -2268,7 +2375,7 @@
* Fixed bug in parse grammer preventing commas in a META list
-* Added cache persistance by writing real Perl to file (rather than
+* Added cache persistence by writing real Perl to file (rather than
the previous Data::Dumper dump of the opcode tree). Had to
re-organise a bunch of code around the parser/provider/document.
Activated by COMPILE_EXT configuration item.
@@ -2277,7 +2384,7 @@
membership of the UNIVERSAL class after the first method call.
* Added AUTO_RESET option which is enabled by default. Disable this
- (AUTO_RESET => 0) for block persistance across service invocations.
+ (AUTO_RESET => 0) for block persistence across service invocations.
* Fixed \@ quoting (and others) in Directive thanks to Perrin Harkins
who reported the bug and Chuck Adams who provided a patch.
@@ -2600,7 +2707,7 @@
compile modified source templates.
* The Template::Provider cache can write compiled templates (e.g. Perl code)
- to disk to create a persistant cache. The COMPILE_EXT may be used to
+ to disk to create a persistent cache. The COMPILE_EXT may be used to
specify a filename extension (e.g. '.ttc') which is used to create
compiled template files. These compiled template files
can then be reloaded on subsequent invocations using via Perl's
@@ -2674,7 +2781,7 @@
sub-routine which can then be executed and re-executed significantly
faster and with far less memory overhead.
-* Persistance.
+* Persistence.
Once a template has been compiled to Perl code it can be saved to
disk as a "compiled template" by defining the COMPILE_EXT option.
@@ -2689,7 +2796,7 @@
Template::Grammar modules won't even be loaded, further reducing
startup time and memory consumption (the grammar file, in particular
is rather large). The Template::Provider module handles the
- loading, caching and persistance of templates, and will examine file
+ loading, caching and persistence of templates, and will examine file
timestamps and re-compiled modified templates as required.
* Flexibility.