I've just released version 2.20_1 which is a developer pre-release
for 2.21.  It's on its way to CPAN.  In the mean time you can download
it here.

   http://tt2.org/download/Template-Toolkit-2.20_1.tar.gz

This release was prompted by my public shaming:

   http://perlmonks.org/?node_id=755790     # hangs head in shame :-(

To redeem myself, I quickly added a STRICT option.

   my $tt = Template->new( STRICT => 1 );

Now you get warnings about undefined variables.  It's sub-optimal
because it doesn't tell you where the error occurred, only the name of
the variable.  But that's hard, if not impossible to do with the TT2
architecture as it currently stands.  So you'll have to wait for TT3 for
proper runtime error reporting (not long now... I've got another month
or so to finish off a project for a customer and then I can get back to
finishing TT3 off and kicking it out the door).

There were also a couple of other outstanding patches that I've applied.
The other major change is to remove all the old documentation (now available
from the web site), examples, and other cruft that was officially
deprecated in version 2.20.  No-one has complained about it, so I'm
assuming that everyone is suitably forewarned or cares not.

Changes pasted below.

Enjoy!
A



#------------------------------------------------------------------------
# Version 2.20_1 (2.21 candidate) - 7th April 2009
#------------------------------------------------------------------------

* Deleted all the old HTML documentation (now available separately from
   http://tt2.org/download/index.html#html_docs), examples, libraries and
   other cruft that was way out of date and badly unloved.

* Tweaked Template::Parser to work better with the ANYCASE option.  It
   now knows that anything following a dotop cannot be a keyword so that
   you can write data.last without the 'last' bit being interpreted as the
   LAST keyword.  Thanks to Sean McAfee for the post that inspired it.
   http://lists.tt2.org/pipermail/templates/2008-September/010462.html

* Fixed a broken test for Apache::Util in the html_entity filter.  Added
   the use_html_entities() and use_apache_util() class methods to
   Template::Filters to allow end-user selection of one or the other.
   http://rt.cpan.org/Public/Bug/Display.html?id=40870
   http://template-toolkit.org/svnweb/Template2/revision/?rev=1177

* Tweaked Template::Context to recognise Badger::Exception objects and
   convert them to Template::Exception objects.  This is a temporary
   measure to keep things working during the transition to Badger-based
   modules.

* Added the STRICT option which will cause the stash to throw an
   exception on encountering an undefined value.  Thanks to Ben Tilly
   for the prod.

* Applied a patch to Template::Iterator from Jonathon Padfield to make
   get_all() do the right thing if get_first() hasn't been called.

* Applied a patch to Template::Stash::Context from Ben Tilly to make
   it easier to subclass.

* Applied a patch from Robin Berjon to add the xml filter.


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to