Version 2.04 is now out!
http://www.template-toolkit.org/download.html
It's also on its way to CPAN.
Enjoy!
A
#------------------------------------------------------------------------
# Version 2.04 - 29th June 2001
#------------------------------------------------------------------------
* Applied a patch from Craig Barratt to both the regular
Template::Stash and the alternate Template::Stash::Context which
allows array indexes into hashes and arrays (slices) in the same
manner as Perl. For example:
[% keys = [ 'foo', 'bar' ]
vals = hash.$keys # [ hash.foo, hash.bar ]
keys = [ 2, 3, 7 ]
vals = list.$keys # [ list.2, list.3, list.7 ]
%]
* Applied another patch from Craig to Parser.pm which fixes a bug
relating to text strings being interpolated in a numerical context.
See: http://www.tt2.org/pipermail/templates/2001-April/000901.html
* Applied yet another patch from Craig ("Man of the Patch" for v2.04 :-),
to fix a problem with NEXT not working inside switch:
FOREACH and WHILE now get a LOOP: label, and NEXT and LAST now
generate "next LOOP;" and "last LOOP;". However, the original
code allows naked "NEXT" or "LAST" (which behave like STOP). I
didn't want to change this behavior, so NEXT and LAST only get the
LOOP label inside loops (except in the top-level atomexpr FOREACH
and atomexpr WHILE cases, which should be ok).
* Does he ever sleep! :-) Another patch from Craig to improve upon
the ref->template mapping feature in Template::View. Documentation
pending. For further details, see
http://www.tt2.org/pipermail/templates/2001-June/001161.html
* Applied a patch from Mark Fowler, which fixes the problem with
search/replace virtual methods incorrectly returning with a search
pattern of '0'. e.g. [% bob = '0'; bob.replace('0', 'zero') %]
now returns 'zero' instead of ''.
* Applied a patch from Doug Steinwand to prevent the Stash from
raising undef error reporting 'Can't locate object methof "bar" via
package "Foo"' unless $DEBUG is enabled.
* 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
mod_perl).
* Changed html filter to be a dynamic filter factory, allowing the
'entity' option to be set to prevent entities of the form
'&word;' being converted to '&word;'
[% FILTER html(entity = 1) %]
< & > # < & >
[% END %]
* Changed Template::Stash to propogate any object errors that
are references (e.g. Template::Exception objects or otherwise)
or string that don't look like "Can't locate object method ...".
* Fixed various typos in docsrc/xml/ttdocsrc with a deft:
s/Plugin::GD::Graphs/Plugin::GD::Graph/g;
* Applied a patch from Leon Brocard to remove a suspect test from
t/filter.t which Chris Nandor reported as causing problems.
* Added Craig's comments on replace backreferences and TT grammar to
TODO list.
* Applied various patches from Leon: to remove redundant "print 1..0"
in various t/*.t files; to add '1;' to end of '.defaults.cfg' file;
and to fix t/vmeth.t and t/leak.t to run correctly under latest
bleadperl.
* Applied a patch from Jonas Liljegren to fix problems with errors
being raised in -T taint mode.
* Fixed another problem identified by Jonas so that filters are no
longer cached. See:
http://www.tt2.org/pipermail/templates/2001-June/001192.html
--
Andy Wardley <[EMAIL PROTECTED]> Signature regenerating. Please remain seated.
<[EMAIL PROTECTED]> For a good time: http://www.kfs.org/~abw/