Debian Codegraph @

Changes

raw
1 Revision history for Text::Template
2
3 1.61 2022-04-28
4 - Skip taint tests if perl was compiled with taint disabled. (Thanks Neil Bowers) [GitHub PR #20]
5
6 1.60 2021-09-03
7 - Fix another POD syntax error.
8
9 1.59 2020-07-03
10 - Fix syntax error in POD example code.
11
12 1.58 2019-09-27
13 - Remove hard coded (old) version number from README
14
15 1.57 2019-09-09
16 - Fix several doc typos (Thanks Antoine Cœur)
17
18 1.56 2019-07-09
19 - Fix typos in Changes
20
21 1.55 2019-02-25
22 - Improve AppVeyor tests for older Perls (Thanks Roy Ivy)
23 - Check for Test::More 0.94 and skip tests if not installed where
24 done_testing() is used (Thanks Roy Ivy).
25 - Improve workaround for broken Win32 File::Temp taint failure (Thanks Roy Ivy).
26 - Skip/todo tests which fail under Devel::Cover (Thanks Roy Ivy)
27 - Add checks and skip_all checks for non-core test modules (Thanks Roy Ivy)
28
29 1.54 2019-01-13
30 - Fix tempfile creation during tests on Win32
31
32 1.53 2018-05-02
33 - Add support for decoding template files via ENCODING constructor arg
34 [github #11]
35 - Docs cleanup: replace indirect-object style examples and use class method
36 style constructor calls in the POD docs
37 - Docs cleanup: remove hard tabs from POD, replace dated, unfair synopsis
38 [github #5], convert "THANKS" section to a POD list
39
40 1.52 2018-03-19
41 - Fix possible 'Subroutine ... redefined' warning (Github #10)
42
43 1.51 2018-03-04
44 - Add test for nested tags breakage that happened in v1.46
45 - Turn off strict+warnings in sections where template code is eval'ed
46 [github #9]
47
48 1.50 2018-02-10
49 *** Revert support for identical start/end delimiters (e.g.: @@foo@@, XXfooXX)
50 due to breakage with nested tags (see
51 https://github.com/mschout/perl-text-template/issues/8). Will revisit
52 this in a future release.
53
54 1.49 2018-02-07
55 - Fix failing tests in v1.48 under perl < 5.8.9
56
57 1.48 2018-02-07
58 - remove COPYING and Artistic files from the dist. These are replaced by
59 the Dist::Zilla generated LICENSE file.
60 - use strict/warnings (thanks Mohammad S Anwar)
61 - remove $VERSION checks from tests. This makes it easier to run the test
62 with Dist::Zilla and avoids maintenance issue of updating the tests for
63 each release (Thanks Andrew Ruder).
64 - Allow precompiled templates to work with preprocessing [#29928] (Thanks
65 Nik LaBelle)
66 - Add "strict" option to fill_in(). This adds "use strict" and "use vars
67 (...)" to the prepend section, and only the keys of the HASH option are
68 allowed in the template. (Thanks Desmond Daignault, Kivanc Yazan, CJM)
69 [55696]
70 - Fix templates with inline comments without newline after comment for perl
71 < 5.18 [34292]
72 - Don't use bareword file handles
73 - use three arg form of open()
74 - Fix BROKEN behaviour so that it returns the text accumulated so far on
75 undef as documented [28974]
76 - Source code cleanups
77 - Minimum perl version is now 5.8.0
78 - Allow start/end delimiters to be identical (e.g.: @@foo@@, XXfooXX)
79 (Thanks mirod) [46639]
80 - Fix + document the FILENAME parameter to fill_in() (Thanks VDB) [106093]
81 - Test suite cleanups:
82 + turn on strict/warnings for all tests
83 + run tests through perltidy and formatting cleanup
84 + remove number prefixes from test names
85 + use Test::More instead of generating TAP by hand
86 + use three-arg form of open()
87 + don't use indirect object syntax
88 + don't use bareword file handles
89 + use File::Temp to generate temporary files
90
91 1.47 2017-02-27
92 - Fix longstanding memory leak in _scrubpkg() [#22031]
93 - Fix various spelling errors [#86872]
94
95 NOTE: Changes for versions prior to 1.47 have been imported from README
96
97 1.46 2013-02-11
98 - Thanks to Rik Signes, there is a new
99 Text::Template->append_text_to_output method, which Text::Template always
100 uses whenever it wants to emit output. You can subclass this to get
101 control over the output, for example for postprocessing.
102 - A spurious warning is no longer emitted when the TYPE parameter to ->new
103 is omitted.
104
105 1.45 2008-04-16
106
107 1.44 2003-04-29
108 - This is a maintenance release. There are no feature changes.
109 - _scrubpkg, which was responsible for eptying out temporary packages after
110 the module had done with them, wasn't always working; the result was
111 memory leaks in long-running applications. This should be fixed now, and
112 there is a test in the test suite for it.
113 - Minor changes to the test suite to prevent spurious errors.
114 - Minor documentation changes.
115
116 1.43 2002-03-25
117 - The ->new method now fails immediately and sets $Text::Template::ERROR if
118 the file that is named by a filename argument does not exist or cannot be
119 opened for some other reason. Formerly, the constructor would succeed
120 and the ->fill_in call would fail.
121
122 1.42 2001-11-05
123 - This is a maintenance release. There are no feature changes.
124 - Fixed a bug relating to use of UNTAINT under perl 5.005_03 and possibly
125 other versions.
126 - Taint-related tests are now more comprehensive.
127
128 1.41 2001-09-04
129 - This is a maintenance release. There are no feature changes.
130 - Tests now work correctly on Windows systems and possibly on other
131 non-unix systems.
132
133 1.40 2001-08-30
134 *** INCOMPATIBLE CHANGE ***
135 - The format of the default error message has changed. It used to look
136 like:
137
138 Program fragment at line 30 delivered error ``Illegal division by zero''
139
140 It now looks like:
141
142 Program fragment delivered error ``Illegal division by zero at catalog.tmpl line 37''
143
144 Note that the default message used to report the line number at which the
145 program fragment began; it now reports the line number at which the error
146 actually occurred.
147
148 *** INCOMPATIBLE CHANGE ***
149 - The format of the default error message has changed. It used to look like:
150
151 Program fragment at line 30 delivered error ``Illegal division by zero''
152
153 It now looks like:
154
155 Program fragment delivered error ``Illegal division by zero at catalog.tmpl line 37''
156
157 - Note that the default message used to report the line number at which the
158 program fragment began; it now reports the line number at which the error
159 actually occurred.
160 - New UNTAINT option tells the module that it is safe to 'eval' code even
161 though it has come from a file or filehandle.
162 - Code added to prevent memory leaks when filling many templates. Thanks
163 to Itamar Almeida de Carvalho.
164 - Bug fix: $OUT was not correctly initialized when used in conjunction
165 with SAFE.
166 - You may now use a glob ref when passing a filehandle to the ->new
167 function. Formerly, a glob was required.
168 - New subclass: Text::Template::Preprocess. Just like Text::Template, but
169 you may supply a PREPROCESS option in the constructor or the fill_in
170 call; this is a function which receives each code fragment prior to
171 evaluation, and which may modify and return the fragment; the modified
172 fragment is what is evaluated.
173 - Error messages passed to BROKEN subroutines will now report the correct
174 line number of the template at which the error occurred:
175
176 Illegal division by zero at template line 37.
177
178 - If the template comes from a file, the filename will be reported as well:
179
180 Illegal division by zero at catalog.tmpl line 37.
181
182 - New UNTAINT option tells the module that it is safe to eval template code
183 even if it has come from a file or filehandle, disabling taint checking
184 in these cases.
185 - Code added to prevent memory leaks when filling many templates. Thanks to
186 Itamar Almeida de Carvalho.
187 - Bug fix: $OUT was not always correctly initialized when used in
188 conjunction with SAFE.
189 - You may now use a glob ref when passing a filehandle to the new function.
190 Formerly, a glob was required.
191 - Error messages passed to BROKEN subroutines will now report the correct
192 line number of the template at which the error occurred:
193
194 Illegal division by zero at template line 37.
195
196 If the template comes from a file, the filename will be reported as well:
197
198 Illegal division by zero at catalog.tmpl line 37.
199
200 - New subclass: Text::Template::Preprocess. Just like Text::Template, but
201 you may supply a PREPROCESS option in the fill_in call; this is a
202 function which receives each code fragment prior to evaluation, and which
203 may modify and return the fragment; the modified fragment is what is
204 evaluated.
205
206 1.31 2001-02-05
207 - Maintenance and bug fix release
208 - fill_in_string was failing. Thanks to Donald L. Greer Jr. for the test case.
209
210 1.23 1999-12-21
211 - Small bug fix: DELIMITER and other arguments were being ignored in calls
212 to fill_in_file and fill_this_in. (Thanks to Jonathan Roy for reporting
213 this.)
214
215 1.22
216 - You can now specify that certain Perl statements be prepended to the
217 beginning of every program fragment in a template, either per template,
218 or for all templates, or for the duration of only one call to fill_in.
219 This is useful, for example, if you want to enable `strict' checks in
220 your templates but you don't want to manually add `use strict' to the
221 front of every program fragment everywhere.
222
223 1.20 1999-03-08
224 - You can now specify that the program fragment delimiters are strings
225 other than { and }. This has three interesting effects: First, it
226 changes the delimiter strings. Second, it disables the special meaning
227 of \, so you have to be really, really sure that the delimiters will not
228 appear in your templates. And third, because of the simplifications
229 introduced by the elimination of \ processing, template parsing is 20-25%
230 faster. See the manual section on `Alternative Delimiters'.
231 - Fixed bug having to do with undefined values in HASH options. In
232 particular, Text::Template no longer generates a warning if you try to
233 give a variable an undefined value.
234
235 1.12 1999-02-28
236 - I forgot to say that Text::Template ISA Exporter, so the exported
237 functions never got exported. Duhhh!
238 - Template TYPEs are now case-insensitive. The `new' method now diagnoses
239 attempts to use an invalid TYPE.
240 - More tests for these things.
241
242 1.11 1999-02-25
243 - Fixed a bug in the way backslashes were processed. The 1.10 behavior was
244 incompatible with the beta versions and was also inconvenient. (`\n' in
245 templates was replaced with `n' before it was given to Perl for
246 evaluation.) The new behavior is also incompatible with the beta
247 versions, but it is only a little bit incompatible, and it is probably
248 better.
249 - Documentation for the new behavior, and tests for the bug.
250
251 1.10 1999-02-13
252 - New OUTPUT option delivers template results directly to a filehandle
253 instead of making them into a string. Saves space and time.
254 - PACKAGE and HASH now work intelligently with SAFE.
255 - Fragments may now output data directly to the template, rather than
256 having to arrange to return it as a return value at the end. This means
257 that where you used to have to write this:
258
259 { my $blist = '';
260 foreach $i (@items) {
261 $blist .= qq{ * $i\n};
262 }
263 $blist;
264 }
265
266 You can now write this instead, because $OUT is special.
267
268 { foreach $i (@items) {
269 $OUT.= " * $i\n";
270 }
271 }
272
273 (`A spoonful of sugar makes the medicine go down.')
274 - Fixed some small bugs. Worked around a bug in Perl that does the wrong
275 thing with $x = <Y> when $x contains a glob.
276 - More documentation. Errors fixed.
277 - Lots more tests.
278
279 1.03 1999-02-06
280 - Code added to support HASH option to fill_in. (Incl. `_gensym'
281 function.)
282 - Documentation for HASH.
283 - New test file for HASH.
284 - Note about failure of lexical variables to propagate into templates. Why
285 does this surprise people?
286 - Bug fix: program fragments are evaluated in an environment with `no
287 strict' by default. Otherwise, you get a lot of `Global symbol "$v"
288 requires explicit package name' failures. Why didn't the test program
289 pick this up? Because the only variable the test program ever used was
290 `$a', which is exempt. Duhhhhh.
291 - Fixed the test program.
292 - Various minor documentation fixes.
293
294 1.00 1999-02-05
295 This is a complete rewrite. The new version delivers better functionality
296 but is only 2/3 as long, which I think is a good sign. It is supposed to be
297 100% backward-compatible with the previous versions. With one cosmetic
298 change, it passes the test suite that the previous versions passed. If you
299 have compatibility problems, please mail me immediately.
300
301 - At least twice as fast
302 - Better support for filling out the same template more than once
303 - Now supports evaluation of program fragments in Safe compartments.
304 (Thanks, Jonathan!)
305 - Better argument syntax
306 - More convenience functions
307 - The parser is much better and simpler
308 - Once a template is parsed, the parsed version is stored so that
309 it needn't be parsed again.
310 - BROKEN function behavior is rationalized. You can now pass an
311 arbitrary argument to your BROKEN function, or return a value
312 from it to the main program.
313 - Documentation overhauled.
314
315 Previous Versions
316 - Maintained by Mark Jason Dominus (MJD)