-
Notifications
You must be signed in to change notification settings - Fork 96
/
Changes
4050 lines (3002 loc) · 170 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#========================================================================
#
# Changes
#
# DESCRIPTION
# Revision history for the Template Toolkit.
#
# AUTHOR
# Andy Wardley <[email protected]>
#
#========================================================================
#-----------------------------------------------------------------------
# Version 3.102
#------------------------------------------------------------------------
Improvements:
* #307 Don't calculate args unless and until they are needed
* #307 Don't go through the importing of the hash if there is none.
* #307 No need to check for definedness before calling ref
* #305 Docs: Added info about accessing values with complex keys from hash
* #316 Split ttree bin code into a re-usable module
Bug Fixes:
* #309 remove extraneous import arguments when loading Template
* #310 remove more extraneous import arguments from tests.
* #318 Correct path splitting on Win32
#-----------------------------------------------------------------------
# Version 3.101
#------------------------------------------------------------------------
Improvements:
* Added meta() method to Template::Document to return all META items
Bug Fixes:
* Fixed incorrect line numbers when using outline tags
* Fixed incorrect Apache::Util(s) module in t/html.t
#-----------------------------------------------------------------------
# Version 3.100
#------------------------------------------------------------------------
Improvements:
* Template::Plugin::CGI removed to be used as a separate distro. (Sawyer X)
#-----------------------------------------------------------------------
# Version 3.010 - 13th December 2021
#------------------------------------------------------------------------
Bug Fixes:
* Fix breakage when VMethods is loaded before Stash. (Felipe Gasper)
* Fix unicode issues in Plugin::Date (Nicolas R)
* Use "defined" instead of "//" because the latter is not available in Perl v5.8. (Louis Strous)
* Fix FILTER redirect does not honor binmode (Louis Strous)
Improvements:
* Avoid anonymous hash warnings starting with Perl 5.35.2 (Graham Ollis)
* Use Data::Dumper as an object. (Justin Wheeler)
* ttree: Rename --assets to --copy_dir. (Johan Vromans)
* ttree: Implement assets directories. (Johan Vromans)
Tests:
* Fix t/zz-plugin-cycle.t errors (Nicolas R)
* Test for Dumper global vars. (Justin Wheeler)
* Remove unused _dump code (Nicolas R)
* Fixed tests failing on MacOS Catalina due to Dynaloader and relative paths (Andy Wardley)
Documentation:
* Update README.md (philip r brenan)
* Add support group to README and Template.pm. (Johan Vromans)
* Make the process() documentation clearer. (Dave Cross)
#-----------------------------------------------------------------------
# Version 3.009 - 13th July 2020
#------------------------------------------------------------------------
* Revert "Allow SET to have FILTER used in it"
#-----------------------------------------------------------------------
# Version 3.008 - 30th March 2020
#------------------------------------------------------------------------
* Bump version requirement for CGI.pm
* Fix taint issue in Template::Provider (jwakely)
* Allow SET to have FILTER used in it (dracos)
#-----------------------------------------------------------------------
# Version 3.007 - 27th January 2020
#------------------------------------------------------------------------
* Fixes cpanm by adding VERSION to Template/Toolkit.pm
#-----------------------------------------------------------------------
# Version 3.006 - 16th January 2020
#------------------------------------------------------------------------
* Fix t/date.t timezone issue introduced when adding '%z' support
#-----------------------------------------------------------------------
# Version 3.005 - 15th January 2020
#------------------------------------------------------------------------
* Add encoding option to Datafile plugin
* Add support for '%z' in Date plugin.
* Fix for WHILE_MAX which was stopping one iteration earlier.
* Refresh contributor list
* Update Copyrights for year 2020
#-----------------------------------------------------------------------
# Version 3.004 - 13th January 2020
#------------------------------------------------------------------------
* Use three-args open which fix an issue in Datafile plugin
as reported by Mikhail Klyuchnikov from Positive Technologies.
#-----------------------------------------------------------------------
# Version 3.003 - 27th December 2019
#------------------------------------------------------------------------
* Revert 'Ensure we only load plugins once per context' which was breaking
multiple plugins including: Template-Plugin-Autoformat, Template-DBI,
Template-Plugin-Map, Template-XML...
* Fix _fetch when mtime is not provided by the plugin.
This is fixing Template-Provider-FromDATA.
* Add an additional GitHub Actions workflow to check plugins for future releases.
#-----------------------------------------------------------------------
# Version 3.002 - 23rd December 2019
#------------------------------------------------------------------------
* Stop warning when updating from version 1 which was released 20 years ago
#-----------------------------------------------------------------------
# Version 3.001 - 23rd December 2019
#------------------------------------------------------------------------
* Remove 'use vars' and officially drop 5.6 support.
* Remove old_new function from Template::Plugin
#-----------------------------------------------------------------------
# Version 3.000 - 23rd December 2019
#------------------------------------------------------------------------
* Bump all packages versions to 3.000
* Switch to github actions for CI testing
* @nataraj-hates-MS-for-stealing-github fixed a minor metacpan POD issue
with Template::Manual::Config
* Display github actions CI status in README
* Reverted behavior change to import vmethod and updated documentation to clarify that it chains.
* Use XSLoader for Template::Stash::XS
* Cache compiled filename so we don't have to figure it out multiple times
* Speed up Template Toolkit template by about 10% with single quotes
* Avoid a double stat in Provider.pm by caching the mtime.
* Avoid destruction segfault on Template objects due to global destruction issues.
* Avoid requiring in modules that are already loaded.
* Switch win32 logic to a constant to speed up processing speed
* Switch from regexes to simple string checks to speed up parsing.
* Ensure we only load plugins once per context.
* Reduce the number of stat()s needed to find a compiled template.
* Optimize get_next overhead for frequent calls by avoiding AUTOLOAD.
* Reduce Template Toolkit get_next overhead
* Update with yapp parser using sort()
* Add BEGIN blocks to Template::Grammar
* Set date to epoch when doing date.format(0)
* Reduce op complexity in some regexes to reduce overhead.
#-----------------------------------------------------------------------
# Version 2.29 - 29th April 2019
#------------------------------------------------------------------------
* G. Flohr fixed multiple weaken cyclic reference
#-----------------------------------------------------------------------
# Version 2.28 - 11th October 2018
#------------------------------------------------------------------------
* Add and enable Travis CI to track GitHub Pull Requests
* Template is now using GitHub as the official Bug Tracker
* Nicolas R. fixed a circular reference in Template::Plugin::Filter
https://github.com/abw/Template2/issues/152
* Nicolas R. adjusted group regexes to not be greedy
https://github.com/abw/Template2/issues/94
* Nicolas R. added unit tests to cover regression from RT 91172
https://github.com/abw/Template2/issues/122
* Nicolas R. added support for template files having mtime=0
https://github.com/abw/Template2/issues/102
* Todd Rinaldo fixed rand calls with no args in Math plugin
https://github.com/abw/Template2/issues/155
* Todd Rinaldo corrected ttree 2.22 logic change
https://github.com/abw/Template2/issues/148
* Todd Rinaldo turned off automated testing for tests using optional modules
https://github.com/abw/Template2/issues/156
* Nicolas R. adjusted unit tests to not force Stash::XS
* Nicolas R. added a pre allocated buffer in Stash.xs to avoid malloc/free
https://github.com/abw/Template2/issues/82
* Nicolas R. optmized Template::Parser by avoiding a dummy sub
https://github.com/abw/Template2/issues/83
* Nicolas R. optimized Template:Directive by using index
https://github.com/abw/Template2/issues/84
* Nicolas R. adjust _dotop logic in Stash for perl 5.28 and earlier
https://github.com/abw/Template2/issues/81
* Todd Rinaldo documented VMethod method called 'item'
https://github.com/abw/Template2/issues/90
* Nicolas R. adjusted t/filter.t after recent switch to RFC3986
https://github.com/abw/Template2/issues/179
* Nicolas R. fixed warnings from t/cgi.t
https://github.com/abw/Template2/issues/178
* Ivan Krylov added STRICT option to ttree
https://github.com/abw/Template2/issues/81
* Kent Fredric fixed relative path handling in templates on Perl 5.26+
https://github.com/abw/Template2/issues/80
* Tom Delmas fixed some typo from documentation
https://github.com/abw/Template2/issues/76
* Matthew Somerville switched uri/url to use RFC3986
updated the documentation to match the history.
https://github.com/abw/Template2/issues/35
* Sebastien Deseille used remove_tree helper to remove directories
https://github.com/abw/Template2/issues/67
* Nick Hibma - Add Sortkeys to DUMPER_ARGS
https://github.com/abw/Template2/issues/64
* E. Choroba added a warn on duplicate block name
https://github.com/abw/Template2/issues/61
* Jason Lewis fixed some typo in ttree.pod
https://github.com/abw/Template2/issues/58
#-----------------------------------------------------------------------
# Version 2.27 - 13th December 2016
#------------------------------------------------------------------------
* Ghost fixed the regex in the uri/url filters, removing double quotes
to make it RFC3986 compliant.
https://github.com/abw/Template2/issues/35
* Sean Zellmer added testrules.yml to always run compile*.t sequentially
https://github.com/abw/Template2/pull/45
* Simon Dawson added 'empty' vmethods for scalar, list and hash
https://github.com/abw/Template2/pull/46
* Dennis Clark added --envvars option to tpage
https://github.com/abw/Template2/pull/49
* Yanick Champoux made Template::Toolkit a module
https://github.com/abw/Template2/pull/51
* Various warnings silenced and typos fixed.
#-----------------------------------------------------------------------
# Version 2.26 - 17th September 2014
#------------------------------------------------------------------------
* Andy Wardley added outline directives. See Template::Manual::Syntax and
Template::Manual::Config for details of the OUTLINE_TAG option and new
'outline' TAG_STYLE. See t/outline.t for examples.
* Andy Wardley improved the handling of keywords when the ANYCASE option
is in use. See t/anycase.t for examples.
* Matthew Somerville fixed an issue with indentation of multiline strings
in compiled templates breaking e.g. translation.
https://github.com/abw/Template2/pull/29
* Chromatic fixed UTF-8 encoding in URLs in URL plugin.
https://github.com/abw/Template2/pull/31
* Brian Fraser added support for platforms without LC_ALL/setlocale.
https://github.com/abw/Template2/pull/34
* Amiri Barksdale fixed RT46691 to plug filter memory leaks
https://github.com/abw/Template2/pull/36
* John Lightsey fixed RT59208 to improve SET
https://github.com/abw/Template2/pull/38
UPDATE: This had to be reverted as it cause a subtle breakage elsewhere
#-----------------------------------------------------------------------
# Version 2.25 - 24th July 2013
#------------------------------------------------------------------------
* Jon Jensen fixed the behaviour of split() which changed in Perl 5.18.0
* Jay Hannah added repository information for metacpan.org et. al.
* Colin Keith fixed Template::Provider's handling of directories
* Kevin Goess made the date plugin accept the ISO8601 "T" separator
* David Steinbrunner fixed various typos.
* Andreas Koenig silenced recent Pod::Simple warnings
* Slaven Rezic silenced warnings in the replace vmethod.
* Ricardo Signes made the Image plugin emit extra tags in a predictable order
* Johan Vromans added the --link option to ttree.
* Smylers added documentation for the ENCODING option.
* Andy Wardley made some minor documentation changes relating to github.
#-----------------------------------------------------------------------
# Version 2.24 - 8th February 2012
#------------------------------------------------------------------------
* Added text virtual methods: upper, lower, ucfirst, lcfirst, squote,
dquote, trim, collapse, html and xml.
* Fixed bug RT#67918 - Bug in Makefile.PL command line parsing when 2 =
signs were in an argument.
* Fixed bug RT#74335 - Added documentation for some methods that were
lacking it to keep Pod::Coverage happy.
#-----------------------------------------------------------------------
# Version 2.23 - 21st January 2012
#------------------------------------------------------------------------
* Fixed bug RT#47929 which caused the XS Stash to die mysteriously when
calling code that used string evaluation (e.g. DateTime).
* Fixed bug RT#68722 so that list.defined('alpha') always returns false.
* Added the TRACE_VARS option to keep track of what variables are used
in a template. It's not documented yet. See t/trace_vars.t for an
example of use.
* Applied patch from RT#48989 to avoid Template::Plugin::Procedural
from adding target class' methods AUTOLOAD and new methods multiple
times (Jens Rehsack)
* Applied patch from RT#53451 to accept negative epoch times in
Template::Plugin::Date.
* Applied patch from Marc Remy to add $Template::Directive::WHILE_MAX
option to tpage.
#-----------------------------------------------------------------------
# Version 2.22 - 21st July 2009
#------------------------------------------------------------------------
* Changed pod coverage and kwalitee tests to only run when release
testing.
#-----------------------------------------------------------------------
# Version 2.21_02 - 4th July 2009
#------------------------------------------------------------------------
* Added UTF8 support to the XS Stash.
https://rt.cpan.org/Ticket/Display.html?id=45842
* Fixed the truncate filter to handle lengths shorter than the '...'
string being appended on the end.
https://rt.cpan.org/Ticket/Display.html?id=45617
* Fixed a bug in the parser/grammar to make NEXT/LAST work correctly
inside nested loops.
https://rt.cpan.org/Ticket/Display.html?id=40887
* Fixed a bug in Template::Plugin::Filter that was causing the weakened
$self reference in a dynamic filter closure to be garbage collected
too soon. (NOTE: this has probably un-fixed a previous bug)
https://rt.cpan.org/Ticket/Display.html?id=46691
* Applied patch to allow list.sort to sort on multiple fields.
https://rt.cpan.org/Ticket/Display.html?id=40637
#-----------------------------------------------------------------------
# Version 2.21_01 - 4th July 2009
#------------------------------------------------------------------------
* Removed Template::Plugin::Autoformat and t/autoform.t. They're now
available as a separate distribution.
* Fixed some Win32 test failures and XS Stash compilation problems.
#-----------------------------------------------------------------------
# Version 2.21 - 30th June 2009
#------------------------------------------------------------------------
* Fixed a PRE_CHOMP bug that left \r characters lying around when
confronted with templates with DOS \r\n line endings.
https://rt.cpan.org/Ticket/Display.html?id=43345
* Applied patch from Bradley Baetz to fix defblock #line numbers
http://rt.cpan.org/Public/Bug/Display.html?id=47024
#-----------------------------------------------------------------------
# Version 2.20_4 (2.21 candidate) - 21st May 2009
#------------------------------------------------------------------------
* Added the even(), odd() and parity() methods to Template::Iterator to
assist in making zebra tables.
* Removed a post-5.6 perlism in Template::Context that broke on 5.6.2
https://rt.cpan.org/Ticket/Display.html?id=46250
* Replaced a whole bunch of UNIVERSAL::isa() calls with blessed/isa
* Applied a patch from Norbert Buchmüller to prevent the #line markers
from being whitespaced away from the first column.
https://rt.cpan.org/Ticket/Display.html?id=46269
* Applied a patch from Denis F. Latypoff to fix uri/url filters with
utf8 text
https://rt.cpan.org/Ticket/Display.html?id=41173
#-----------------------------------------------------------------------
# Version 2.20_3 (2.21 candidate) - 20th May 2009
#------------------------------------------------------------------------
* Fixed the XS Stash to compile properly in threaded Perls.
https://rt.cpan.org/Public/Bug/Display.html?id=46240
* Applied a patch to the XS Stash from Alexey A. Kiritchun to make the
scalar.length vmethod work correctly with utf8 strings.
http://lists.tt2.org/pipermail/templates/2009-May/010803.html
#-----------------------------------------------------------------------
# Version 2.20_2 (2.21 candidate) - 17th May 2009
#------------------------------------------------------------------------
* Applied a patch to Template::Test from Andrew Ford to make it skip
properly.
http://lists.tt2.org/pipermail/templates/2009-March/010678.html
* Changed the ttree -v/--verbose option so be less verbose and only
report on things that have changed. To make it more verbose (like
previous versions), add a second -v/--verbose flag, e.g.
$ ttree -v -v
* Also added the --summary option to tree to print a summary of what it
did, and the --color/--colour option to make it print its verbose
messages in colour (on ANSI terminals).
* Applied a ttree patch from Lyle Brooks to allow ttree to accept a
directory name as a command line argument.
* Added the define_view() and define_views() method to Template::Context
and added the VIEWS option to pre-define views when the Template object
is created. Thanks to Timmy Chan for providing the groundwork on this.
http://lists.tt2.org/pipermail/templates/2009-April/010689.html
* Retrospectively fixed the Changes for 2.20 to mention the ttree
--encoding option.
* Applied a patch from Chisel Wright, changing uses of UNIVERSAL::can()
to use blessed() and ->can().
http://lists.tt2.org/pipermail/templates/2009-May/010790.html
* Fixed a memory leak in the XS Stash introduced in 2.20.
Thanks to Breno G. de Oliveira for reporting the problem and helping to
narrow it down.
https://rt.cpan.org/Public/Bug/Display.html?id=46058
#------------------------------------------------------------------------
# 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.
#------------------------------------------------------------------------
# Version 2.20 - 13th August 2008
#------------------------------------------------------------------------
* Updated all the documentation.
* Restored the GIF images that got mangled in the switch from CVS to
Subversion.
* Fixed the Makefile.PL to pre-glob the tests to keep things working
smoothly in Win32.
http://rt.cpan.org/Ticket/Display.html?id=25573
* Applied a patch to Template::Directives from Ben Morrow to fix the
SWITCH/CASE directive when matching strings containing regex metacharacters.
http://rt.cpan.org/Ticket/Display.html?id=24183
* Applied a patch to Template::Parser from Koichi Taniguchi to make it
treat TAGS with case sensitivity.
http://rt.cpan.org/Ticket/Display.html?id=19975
* Changed html_entity_filter_factory() in Template::Filters to only look for
Apache::Utils and HTML::Entities once.
http://rt.cpan.org/Ticket/Display.html?id=19837
Template::Stash
---------------
* Applied a patch to Template::Stash from Jess Robinson which allows you
to call a list method on a single object and have it automatically
upgraded to a single item list. Changed the XS Stash to do the same.
http://lists.tt2.org/pipermail/templates/2006-November/009115.html
* Fixed a minor bug in the XS Stash which prevented it from updating
hash entries with empty, but defined keys. Thanks to Yitzchak
Scott-Thoennes for reporting the problem.
http://lists.tt2.org/pipermail/templates/2007-November/009819.html
* Applied a patch from Alexandr Ciornii to make the XS Stash compile
cleanly under VC++ 6.0 and with Sun's C compiler.
http://rt.cpan.org/Ticket/Display.html?id=20291
Template::Provider
------------------
* Fixed a minor bug in the Template::Provider code added in 2.19 that
caused errors in templates to only be reported once. Subsequent
fetches incorrectly returned 'not found' instead of repeating the
error.
* Made Template::Provider use File::Spec->catfile instead of using '/'
and letting Perl worry about Doing The Right Thing.
http://rt.cpan.org/Ticket/Display.html?id=34489
* Applied patch from Lyle Brooks to add binmode to the _template_content()
method in Template::Provider.
http://rt.cpan.org/Ticket/Display.html?id=38075
* Applied patch from Ted Carnahan to silence UNIVERSAL::isa warnings in
Template::Provider.
http://rt.cpan.org/Ticket/Display.html?id=25468
* Applied patch to Template::Provider from Andrew Hamlin which works around
a bug in Strawberry Perl on Win32.
http://rt.cpan.org/Ticket/Display.html?id=34578
Template::VMethods
------------------
* Applied a patch from Paul "LeoNerd" Evans to make the list.slice vmethod
work properly with negative indices.
http://lists.tt2.org/pipermail/templates/2008-March/010105.html
Plugins
-------
* Added the Math plugin and related files to the MANIFEST so they
actually get shipped out as part of the distribution. D'Oh!
http://rt.cpan.org/Ticket/Display.html?id=27375
* Added the Scalar plugin which adds the .scalar vmethod for calling
object methods and subroutines in scalar context.
* Added Template::Plugin::Assert which allows you to assert that values
are defined.
* Changed Template::Plugin::Filter to weaken the $self reference to avoid
circular references and memory leaks. Thanks to Masahiro Honma for
reporting the problem and suggesting the fix.
* Applied patch from Ronald J Kimball to make Template::Plugin::Date accept
dates with the year coming first.
http://lists.tt2.org/pipermail/templates/2007-July/009540.html
* Added C<1;> to the end of a few plugin modules that were missing it.
ttree
-----
* Changed the --accept option in ttree to match against the full file
path (relative to --src dir) rather than just the file name. This
makes it behave the same way as the --ignore option.
* Applied patch from Lyle Brooks to add binmode to the process()
call in ttree.
http://rt.cpan.org/Ticket/Display.html?id=38076
* Added a patch from Nigel Metheringham also to set binmode in ttree
but via a configuration option.
https://rt.cpan.org/Ticket/Display.html?id=30760
* Applied a patch from Éric Cholet to add the --encoding option to ttree.
http://lists.tt2.org/pipermail/templates/2008-August/010369.html
#------------------------------------------------------------------------
# Version 2.19 - 27th April 2007
#------------------------------------------------------------------------
* Applied a patch to t/fileline.t from Steffen Müller which fixes the
problems running on Win32 with backslashes in paths.
https://rt.cpan.org/Ticket/Display.html?id=20488
* Applied a patch to the XS Stash from Randy Kobes which fixes some other
Win32 problems.
http://lists.tt2.org/pipermail/templates/2007-February/009247.html
* Applied another patch to the XS Stash from Steve Peters which fixes
a problem with tied hashes under more recent version of Perl.
http://lists.tt2.org/pipermail/templates/2007-January/009181.html
* Fixed a problem in the Perl Stash when using objects that have
overloaded comparison operators. Thanks to Randal Schwartz, Tatsuhiko
Miyagawa and Daisuke Maki for their contributions.
http://lists.tt2.org/pipermail/templates/2007-March/009265.html
* Applied a patch from Bill Moseley to Template::Provider which adds
negative caching and moves some functionality into separate methods
to make subclassing easier. Also added the STAT_TTL configuration
parameter.
http://lists.tt2.org/pipermail/templates/2007-January/009183.html
* Added the url filter as a less aggressive form of the uri filter.
Whereas the uri filter now (from v2.16 onwards) encodes all the
reserved characters (@, :, /, etc.) as per RFC2396, the url filter
leaves them intact and thus behaves just like the uri filter used
to.
http://lists.tt2.org/pipermail/templates/2007-March/009277.html
#------------------------------------------------------------------------
# Version 2.18a - 9th February 2007
#------------------------------------------------------------------------
* Applied a patch from Steve Peters to the Stash.xs to allow it to
compile with bleadperl 5.9.x
https://rt.cpan.org/Public/Bug/Display.html?id=22506
#------------------------------------------------------------------------
# Version 2.18 - 9th February 2007
#------------------------------------------------------------------------
* Merged in Adam's changes in 2.16 and 2.17 back into the developer CVS
repository and added his name to the credits.
* Changed the parser grammar to accept expressions as arguments to a
subroutine, method or virtual method call. I'm embarrassed to admit
that it was a one line change that could (and should) have been made
long ago, if only I had realised just how trivial it was. Anyway,
you can now write nested expressions like this:
[% add(a+5, b < 10 ? c : d + e*5) %]
* Put the t/fileline.t test back in as this was fixed in 2.15a
* Added the Template::Toolkit documentation-only module.
#------------------------------------------------------------------------
# Version 2.17 - 8th Feb 2007
#------------------------------------------------------------------------
Another interim release from Adam Kennedy.
* Change in Makefile.PL to force an upgrade to File::HomeDir 0.64 on darwin.
This is due to problems caused by changes made to Perl on the new Intel
versions of Mac OS X.
* skip_all filelines.t on darwin
#------------------------------------------------------------------------
# Version 2.16 - 23rd Jan 2007
#------------------------------------------------------------------------
Interim release from Adam Kennedy.
* Skip fileline.t on Win32, as it has some hard-coded path seperator
assumptions. This will be fixed more comprehensively later.
* Handle spurious errors in Makefile.PL when a dev version of
ExtUtils::MakeMaker is installed.
* Don't say "nmake" on Win32 when $Config{make} is 'dmake'.
This corrects the message on Strawberry Perl.
#------------------------------------------------------------------------
# Version 2.15c - Not released ## DEVELOPER RELEASE ##
#------------------------------------------------------------------------
* Fixed a bug in Template::Parser which caused it to get confused about
block names if it encountered a syntax error inside a BLOCK. Thanks
to Bill Moseley for reporting the problem.
http://lists.tt2.org/pipermail/templates/2006-July/008815.html
* Fixed a minor buglet in Template::Provider which came to light while
investigating the above problem. If a previously cached template is changed
on disk and then fails to compile, the provider now invalidates the cache
entry immediately. Without this fix, the provider would report the error
once, then reuse the cached good version of the template until $STAT_TTL
ticked over when it would try to load and compile the disk version again.
The problem was that error messages were only reported once every $STAT_TTL
second(s) and any requests for the same template in the interim time would
mysteriously work. This way errors get reported consistently and immediately
and no-one has to waste an afternoon trying to figure out where the errors
went!
#------------------------------------------------------------------------
# Version 2.15b - 30th May 2006 ## 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 [email protected]
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
* Fixed the redirect filter to not support relative paths. Thanks to
Paul Seamons for spotting the problem and providing a solution.
* 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 all
version numbers in other modules to be a hard-coded numbers instead
of grokking it automagically from the CVS revision.
* 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
to [email protected] for reporting the problem.
http://rt.cpan.org/Ticket/Display.html?id=18653
#------------------------------------------------------------------------
# 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
#------------------------------------------------------------------------
Chomping Options
----------------
* Added the CHOMP_GREEDY option and '~' chomping flag. Changed
CHOMP_COLLAPSE to greedily chomp all whitespace (including multiple
newlines) and replace it with a single space. Previously it only
chomped one line. Renamed the CHOMP_ALL option to CHOMP_ONE which
makes more sense. CHOMP_ALL is still provided as an alias for
CHOMP_ONE for backwards compatibility. Thanks to Paul Seamons for
doing all the hard work on this.
http://lists.tt2.org/pipermail/templates/2006-February/thread.html#8354
* Added code to the replace text virtual method to use a faster and
simpler implementation if the replacement text doesn't contain any
back references. Thanks to Josh Rosenbaum for all his efforts on
this.
http://lists.tt2.org/pipermail/templates/2006-February/008344.html
Stash
-----
* Changed various tests for private/hidden variables (starting '_'
or '.') to use a regex defined in the $PRIVATE package variable in
Template::Stash. This can be redefined or undefined. Note that
the XS Stash only looks to see if $PRIVATE is defined or not, and
currently hard-codes the regex.
Plugins
-------
* Changed the Image plugin tag() method to call the name() method
instead of accessing the name directly, making it easier for
subclasses to provide an alternate name. Thanks to Cees Hek for
his patch.
http://lists.tt2.org/pipermail/templates/2006-February/008423.html
* Change the AUTOLOAD regex in the Table plugin to be more robust.
http://lists.tt2.org/pipermail/templates/2006-May/008602.html
Documentation
-------------
* Added the Template::Toolkit documentation pointing people to
the right place.
* Updated the Template::Stash::XS documentation to remove the
"experimental" description and tidy things up a bit.
#------------------------------------------------------------------------
# Version 2.14a - 2nd February 2006 ## DEVELOPER RELEASE ##
#------------------------------------------------------------------------
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
[% hashobj.vmethod %] [% listobj.2 %] and [% listobj.vmethod %] now
all work with the Perl Template::Stash. Added code to the XS Stash
to do the same and updated tests.
http://template-toolkit.org/pipermail/templates/2003-December/005417.html
* 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://lists.tt2.org/pipermail/templates/2006-January/008266.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
* Changed Template::Stash and Template::Stash::XS to evaluate list
vmethods in lvalues.
http://lists.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, Tom Insam and Stig
Brautaset for reporting the problem and providing fixes.
http://lists.tt2.org/pipermail/templates/2005-April/007375.html
http://lists.tt2.org/pipermail/templates/2006-February/008367.html
* Removed redundant performance profiling code from
Template::Stash::XS. Must check with Doug that this is OK and he's
not still using it...
Virtual Methods
---------------
* Added the scalar.remove, scalar.substr, hash.delete, hash.items,
hash.pairs, list.import and list.hash virtual methods.
* Changed the scalar.replace method to work properly with back
references ($1, $2, etc) by incorporating ideas, code and tests from
Nik Clayton, Paul Seamon, Sergey Martynoff, Josh Rosenbaum and
others.
http://lists.tt2.org/pipermail/templates/2006-February/008306.html
http://lists.tt2.org/pipermail/templates/2006-February/008326.html
* Changed list.push and list.unshift to accept multiple arguments,
thanks to Bill Moseley.
http://lists.tt2.org/pipermail/templates/2006-January/008294.html
* Fixed the split scalar virtual method which wasn't accepting the
second argument (limit) correctly. Thanks to Josh Rosenbaum for
pointing out the problem.
http://lists.tt2.org/pipermail/templates/2005-October/007982.html
* Documented the fact that hash.list is going to change in the future,
recommending people switch to hash.pairs.
http://lists.tt2.org/pipermail/templates/2006-January/008256.html
http://lists.tt2.org/pipermail/templates/2006-February/008312.html
* Added the global option to the 'match' scalar virtual method.
* Changed $element to $component in Template::Context to fix callers
bug, thanks to Andy Maas who identified the problem and found the
solution:
http://lists.tt2.org/pipermail/templates/2004-December/007020.html
* Changed the sort and nsort list virtual methods to always return
references to lists, avoiding any ambiguity in return results.
* Changed the hash.defined method to do the same thing as
scalar.defined when called without arguments. Added list.defined to