New upstream snapshot.
Debian Janitor
1 year, 4 months ago
0 | 2.98 In development. | |
1 | - Added Unicode tests [Vytas Dauksa] | |
2 | ||
0 | 3 | 2.97 Thu May 18 2017 |
1 | 4 | - Change internal module name HTML::Template::DEFAULT to |
2 | 5 | HTML::Template::DEF to avoid conflict with |
291 | 291 | |
292 | 292 | - "Package" refers to the collection of files distributed by the Copyright |
293 | 293 | Holder, and derivatives of that collection of files created through |
294 | textual modification. | |
294 | textual modification. | |
295 | 295 | - "Standard Version" refers to such a Package if it has not been modified, |
296 | 296 | or has been modified in accordance with the wishes of the Copyright |
297 | Holder. | |
297 | Holder. | |
298 | 298 | - "Copyright Holder" is whoever is named in the copyright or copyrights for |
299 | the package. | |
299 | the package. | |
300 | 300 | - "You" is you, if you're thinking about copying or distributing this Package. |
301 | 301 | - "Reasonable copying fee" is whatever you can justify on the basis of media |
302 | 302 | cost, duplication charges, time of people involved, and so on. (You will |
303 | 303 | not be required to justify it to the Copyright Holder, but only to the |
304 | computing community at large as a market that must bear the fee.) | |
304 | computing community at large as a market that must bear the fee.) | |
305 | 305 | - "Freely Available" means that no fee is charged for the item itself, though |
306 | 306 | there may be fees involved in handling the item. It also means that |
307 | 307 | recipients of the item may redistribute it under the same conditions they |
308 | received it. | |
308 | received it. | |
309 | 309 | |
310 | 310 | 1. You may make and give away verbatim copies of the source form of the |
311 | 311 | Standard Version of this Package without restriction, provided that you |
372 | 372 | |
373 | 373 | 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED |
374 | 374 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF |
375 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
375 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
376 | 376 | |
377 | 377 | The End |
378 | 378 |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025. | |
1 | 1 | Changes |
2 | 2 | LICENSE |
3 | 3 | MANIFEST |
23 | 23 | t/03-else_else_bug.t |
24 | 24 | t/04-default-escape.t |
25 | 25 | t/04-default_with_escape.t |
26 | t/04-escape-unicode.t | |
26 | 27 | t/04-escape.t |
27 | 28 | t/04-no_taintmode.t |
28 | 29 | t/04-type-source.t |
2 | 2 | author: |
3 | 3 | - 'Michael Peters <mpeters@plusthree.com>' |
4 | 4 | build_requires: |
5 | CGI: '0' | |
5 | 6 | File::Temp: '0' |
6 | 7 | Test::More: '0' |
7 | 8 | Test::Pod: '0' |
8 | 9 | configure_requires: |
9 | 10 | ExtUtils::MakeMaker: '0' |
10 | 11 | dynamic_config: 0 |
11 | generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005' | |
12 | generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010' | |
12 | 13 | license: perl |
13 | 14 | meta-spec: |
14 | 15 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
15 | 16 | version: '1.4' |
16 | 17 | name: HTML-Template |
17 | 18 | requires: |
18 | CGI: '0' | |
19 | 19 | Carp: '0' |
20 | 20 | Digest::MD5: '0' |
21 | 21 | File::Spec: '0.82' |
23 | 23 | resources: |
24 | 24 | bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template |
25 | 25 | repository: git://github.com/mpeters/html-template.git |
26 | version: '2.97' | |
26 | version: '2.98' | |
27 | x_generated_by_perl: v5.36.0 | |
28 | x_serialization_backend: 'YAML::Tiny version 1.73' | |
29 | x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043. | |
0 | # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025. | |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
15 | 15 | "LICENSE" => "perl", |
16 | 16 | "NAME" => "HTML::Template", |
17 | 17 | "PREREQ_PM" => { |
18 | "CGI" => 0, | |
19 | 18 | "Carp" => 0, |
20 | 19 | "Digest::MD5" => 0, |
21 | 20 | "File::Spec" => "0.82", |
22 | 21 | "Scalar::Util" => 0 |
23 | 22 | }, |
24 | 23 | "TEST_REQUIRES" => { |
24 | "CGI" => 0, | |
25 | 25 | "File::Temp" => 0, |
26 | 26 | "Test::More" => 0, |
27 | 27 | "Test::Pod" => 0 |
28 | 28 | }, |
29 | "VERSION" => "2.97", | |
29 | "VERSION" => "2.98", | |
30 | 30 | "test" => { |
31 | 31 | "TESTS" => "t/*.t" |
32 | 32 | } |
0 | ||
1 | ||
2 | 0 | This archive contains the distribution HTML-Template, |
3 | version 2.97: | |
1 | version 2.98: | |
4 | 2 | |
5 | 3 | Perl module to use HTML-like templating language |
6 | 4 | |
10 | 8 | the same terms as the Perl 5 programming language system itself. |
11 | 9 | |
12 | 10 | |
13 | This README file was generated by Dist::Zilla::Plugin::Readme v5.043. | |
14 | ||
11 | This README file was generated by Dist::Zilla::Plugin::Readme v6.025. |
0 | libhtml-template-perl (2.97+git20170922.1.c2937e0-1) UNRELEASED; urgency=low | |
1 | ||
2 | * New upstream snapshot. | |
3 | ||
4 | -- Debian Janitor <janitor@jelmer.uk> Tue, 20 Dec 2022 07:40:37 -0000 | |
5 | ||
0 | 6 | libhtml-template-perl (2.97-2) unstable; urgency=medium |
1 | 7 | |
2 | 8 | [ Laurent Baillet ] |
15 | 15 | File::Spec = 0.82 |
16 | 16 | Digest::MD5 = 0 |
17 | 17 | Scalar::Util = 0 |
18 | CGI = 0 | |
19 | 18 | |
20 | 19 | [Prereqs / TestRequires] |
21 | 20 | File::Temp = 0 |
22 | 21 | Test::More = 0 |
23 | 22 | Test::Pod = 0 |
23 | CGI = 0 | |
24 | 24 | |
25 | 25 | [MetaResources] |
26 | 26 | bugtracker.web = https://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Template |
0 | 0 | package HTML::Template; |
1 | 1 | |
2 | $HTML::Template::VERSION = '2.97'; | |
2 | $HTML::Template::VERSION = '2.98'; | |
3 | 3 | |
4 | 4 | =head1 NAME |
5 | 5 |
0 | use strict; | |
1 | use warnings; | |
2 | use utf8; | |
3 | ||
4 | use open ':std', ':encoding(utf8)'; | |
5 | use Test::More (tests => 10); | |
6 | use_ok('HTML::Template'); | |
7 | ||
8 | while (<DATA>) { | |
9 | chomp; | |
10 | next if /^$/; | |
11 | next if /^#/; | |
12 | my ($text, $given, $wanted) = split /\|/; | |
13 | my $template = HTML::Template->new( | |
14 | scalarref => \$text, | |
15 | default_escape => "HTML" | |
16 | ); | |
17 | ||
18 | undef $given if $given eq 'undef'; | |
19 | $template->param(foo => $given); | |
20 | my $output = $template->output; | |
21 | is($output, $wanted, $text); | |
22 | } | |
23 | ||
24 | # use pipe as the seperator between fields. | |
25 | # the TMPL_VAR name should always be 'foo' | |
26 | # fields: TMPL_VAR|given string|escaped string | |
27 | ||
28 | __DATA__ | |
29 | # use default escaping | |
30 | <TMPL_VAR foo>|<b>this is 字ñ\n|<b>this is 字ñ\n | |
31 | <TMPL_VAR name=foo>|<b>this is 字ñ\n|<b>this is 字ñ\n | |
32 | <TMPL_VAR name='foo'>|<b>this is 字ñ\n|<b>this is 字ñ\n | |
33 | <TMPL_VAR NAME="foo">|<b>this is 字ñ\n|<b>this is 字ñ\n | |
34 | <!-- TMPL_VAR foo -->|<b>this is 字ñ\n|<b>this is 字ñ\n | |
35 | <!-- TMPL_VAR name=foo -->|<b>this is 字ñ\n|<b>this is 字ñ\n | |
36 | <!-- TMPL_VAR NAME=foo -->|<b>this is 字ñ\n|<b>this is 字ñ\n | |
37 | <!-- TMPL_VAR name='foo' -->|<b>this is 字ñ\n|<b>this is 字ñ\n | |
38 | <!-- TMPL_VAR NAME="foo" -->|<b>this is 字ñ\n|<b>this is 字ñ\n |