Thanks to the incessant efforts of Craig and other folk, version 2.03b is now available. I also found a couple of other patches I had missed so they've gone in too.
http://www.tt2.org/download/ If anyone's got a patch which hasn't made it in, and I haven't replied to say that it's not going in, or documented it in the TODO file then badger me now! Changes attached below. Enjoy! A #------------------------------------------------------------------------ # Version 2.03b - 25th June 2001 ## DEVELOPER PRE-RELEASE FOR v2.04 ## #------------------------------------------------------------------------ * 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. -- Andy Wardley <[EMAIL PROTECTED]> Signature regenerating. Please remain seated. <[EMAIL PROTECTED]> For a good time: http://www.kfs.org/~abw/
